Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

defer_js helper script blocks rendering #997

Open
GoogleCodeExporter opened this issue Apr 6, 2015 · 2 comments
Open

defer_js helper script blocks rendering #997

GoogleCodeExporter opened this issue Apr 6, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

See 
http://serverfault.com/questions/585419/mod-pagespeed-own-js-and-css-render-bloc
king

The PSI report 
http://developers.google.com/speed/pagespeed/insights/?url=pacifika.ru&tab=mobil
e indicates that http://pacifika.ru/mod_pagespeed_static/js_defer.IRaJtkfeqL.js 
blocks onload.  We should consider loading the defer_js helper script on a 
timeout triggered from requestAnimationFrame, like we do with the non-critical 
css.

Original issue reported on code.google.com by jmara...@google.com on 4 Oct 2014 at 2:13

@danballance
Copy link

This is affecting me too. Without pagespeed my JS scripts are being loaded with the "async" attribute and the pagespeed insights analysis does not complain. When I run the tool against my page with pagespeed enabled, it get the message:

Remove render-blocking JavaScript:
/pagespeed_static/js_defer.-GkJcpjJ0Z.js

Is there anything to be done here?

@morlovich
Copy link
Contributor

If your site is already using all async scripts, I'd suggest just turning
the defer_js filter off; it's meant for people who scripts aren't already
async, so it's extemely unlikely to benefit you if you're already all async.
(Perhaps it should notice it itself...).

On Fri, Sep 23, 2016 at 7:27 AM, Dan Ballance notifications@github.com
wrote:

This is affecting me too. Without pagespeed my JS scripts are being loaded
with the "async" attribute and the pagespeed insights analysis does not
complain. When I run the tool against my page with pagespeed enabled, it
get the message:

Remove render-blocking JavaScript:
/pagespeed_static/js_defer.-GkJcpjJ0Z.js

Is there anything to be done here?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#997 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADl1RN0GJfhghTLt4jyZI-6e703-HLwCks5qs7elgaJpZM4KE4PH
.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants