pagespeed_no_defer and pagespeed_lsc_url break HTML5 validation #584
Comments
Original comment by
|
Original comment by |
Hi, i am having same issue with prioritize_critical_css when i activate it pagespeed adds < script pagespeed_no_defer="">critical_css_loader script stuff</ script> to the bottom of my page and it breaks the validation, will there be a fix for this soon? |
No. Moving non-critical CSS to the bottom of the page is how prioritize_critical_css functions – there's no standards-compliant way we know of to lazy load the CSS without adding additional latency to your page. Given the choice, this filter has been forced to opt for a working solution rather than a strict standards-compliant one. That said, we've change the non-standard pagespeed attributes to be spec-compliant; in the next release you should be able to use data-pagespeed-no-defer and pagespeed will indeed insert data-pagespeed-lsc-url. (This is currently available in head if you build from source.) My suggestion: disable prioritize_critical_css and enable pedantic when you are running a validator. We suggest that you do the reverse in day-to-day operation. |
Just to be clear, i am perfectly happy with how prioritize_critical_css functions and wouldnt live without it... The problem is pagespeed-no-defer tag which is being add automaticly, so if i understand you correctly on next release that pagespeed-no-defer tag which was added by mps will automaticly change to data-pagespeed-no-defer and there wont be a problem anymore am i right? Is this change included in latest beta release? |
@slayer1ss the change here ab76063 as of now isn't included in the latest beta release. |
@crowell thank you very much for that information, it actually both answers my question about if i got it right and tells me that it is not ready yet :) I dont want to take any more of your time but do you guys have a timetable for this update? |
Original issue reported on code.google.com by
bar...@shrikeh.net
on 7 Dec 2012 at 11:57The text was updated successfully, but these errors were encountered: