Poor google page speed
-
Hi Thomas,
Just checked the google pagespeed of my page. Google doesn’t like blocking js above the fold. I think it should be totally fine to load the front.js deferred. That you think?
That’s the function i normally use for deferred loading. Maybe it helps you
(function(w,d)) { function f () { var e = d.createElement("script"); e.src = "/image-source-control-isc/js/front-js.js"; d.body.appendChild(e); } if (w.addEventListener) w.addEventListener("load", f, false); else if (w.attachEvent) w.attachEvent("onload", f); else w.onload = f; } (window,document);
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Poor google page speed’ is closed to new replies.