How can I move all minified js script to footer




Wordpress LScache Plugin: How can I move all minified js script to footer

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi, I am wondering how can I move all minified js script to the footer? I have tried using this code but the minified js script still stayed in the header. // Custom Scripting to Move JavaScript from the Head to the Footer function remove_head_scripts() remove_action(wp_head, wp_print_scripts) remove_action(wp_head, wp_print_head_scripts, 9) remove_action(wp_head, wp_enqueue_scripts, 1) add_action(wp_footer, wp_print_scripts, 5) add_action(wp_footer, wp_enqueue_scripts, 5) add_action(wp_footer, wp_print_head_scripts, 5) add_action( wp_enqueue_scripts, remove_head_scripts ) // END Custom Scripting to Move JavaScript Thank you for your help. The page I need help with: https://www.howtostudycantonese.com/ Hi @kghugo2000, our combine and minify engine will follow your original source location to put the minified CSS and JS on head or foot. You may try this instruction to move all the file to the footer, or if are concerning the JS blocking, you can try our Load JS Deferred feature. Great thank you for your help!



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference