Title: Scripts are moved to header
Last modified: June 2, 2017

---

# Scripts are moved to header

 *  [mattox3](https://wordpress.org/support/users/mattox3/)
 * (@mattox3)
 * [9 years ago](https://wordpress.org/support/topic/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.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [mattox3](https://wordpress.org/support/users/mattox3/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/scripts-are-moved-to-header/)
 * Status: not resolved