Scripts are moved to header
-
Hello,
while optimizing one of my sites using your plugin, I found out, that all the scripts are getting moved to header. To further explain my situation, here is what I did:
1. In theme child’s functions.php, all my scripts are loaded in footer (in_footer parameter is set to true)
2. wp_footer() gets called just before the closing </body> tag and right before this call I’ve got a “<!– W3TC-include-js-head –>” tag.So, by my knowledge, this should be enough to remove scripts out of head tag but this is not the case since I still have PageSpeed Insight messages about blocking scripts.
What am I doing wrong?
Also, 1 more question: is it possible to combine all my scripts into one script to reduce number of requests being made to server?
Thank you in advance
The topic ‘Scripts are moved to header’ is closed to new replies.