Afternoon Resham;
The only instance where AO uses window.load (as a fallback for domContentLoaded event) explicitly is when you’re “inline&defer”-ing CSS, which you are not. Now when JS is not forced in head, the JS is loaded with the “defer”-flag, that might have an impact (ticking the “force JS in head”-option fixes that, but JS is better not forced in head, so …).
But most importantly; you’re using cloudflare’s rocketloader, that would be my first suspect really 🙂
Have fun,
frank
Hi Frank,
Sorry for the late reply, stuck with exams here.
I tried “Force JS in Head”, tried disabling rocketloader, tried disabling cloudflare. Gtmetrix still doesn’t give me anything..
Also I have this ‘Reduce server response time’ error in pagespeed insights. Anything that might help fix that other than changing my webserver? I am on hostgator shared plan for now and can’t afford dedicated right now!
Cheers,
Resham Panth
regarding window.onload; no idea in that case, really. if JS is forced into head and if rocketlauncher is off, the only remaining possibility is you have code inside the optimized JS which fires upon window.load?
regarding reduce server response time; generally you’d want a page caching plugin (e.g. wp super cache or hypercache or comet cache or …) to help you with that.
frank
I am using W3 total cache for that. Don’t see any improvement. Still get the error
then I would try with one of the many alternatives really. wp super cache maybe?
The reason why I dont want to switch from W3TC is the option to use a subdomain to serve static resources. Did not find that in any other plugin
well, WP super Cache has “cdn”-support, which is essentially the same thing as far as I can tell 🙂