Issue between prioritize_critical_css and defer_javascript

3 views
Skip to first unread message

Hemant Nandrajog

unread,
May 22, 2013, 2:50:20 AM5/22/13
to mod-pagespeed...@googlegroups.com
Hello, 

I am having a weird problem/conflict between prioritize_critical_css and defer_javascript

If I have both the filters enabled in apache config file 
The site loads with no css at all and after on load even (I guess) when javascripts are loaded, site refereshes and shows proper styled site in source but inline css is just first line of the css file (in this case import for google fonts) 

If I disable defer_javascript in config file prioritize_critical_css  works as expected 

and keeping the defer_javascript in config and enabling defer_javascript through get request http://icnd.info/?ModPagespeedFilters=+defer_javascript
works as expected. 

Any pointers on debuging the problem?

Thanks
Hemant

Matt Atterbury

unread,
May 22, 2013, 7:59:49 AM5/22/13
to Hemant Nandrajog, mod-pagespeed-beta-testers
Hi,

If I disable defer_javascript in config file prioritize_critical_css  works as expected 

and keeping the defer_javascript in config and enabling defer_javascript through get request http://icnd.info/?ModPagespeedFilters=+defer_javascript
works as expected. 

Could you clarify this please?
Do you mean "enabling defer_javascript and using +defer_javascript", or "disabling defer_javascript but using +defer_javascript"?

If the former that is very confusing as the +defer_javascript should be a no-op.

Thanks! m.

Hemant Nandrajog

unread,
May 22, 2013, 8:57:10 AM5/22/13
to Matt Atterbury, mod-pagespeed-beta-testers
I meant if I enable defer_javascript in the apache config file then the problem occurs 

But if I disable that in config and use +defer_javascript in url problem is not there 

so basically different behaviours
Reply all
Reply to author
Forward
0 new messages