W3 total cache move minified js files to bottom of html page
W3 total cache move minified js files to bottom of html page, If you have enabled W3 total cache in WordPress and using minify js, all those java-script files are added in head tag. When you are optimizing your website for page loading speed, it’s better to add those files at the end of the html file or before closing body tag. For doing this there is no option in W3 total cache settings in WordPress.
We can achieve this by adding one single line of code before closing body tag in WordPress theme template files footer.php
<!-- W3TC-include-js-head -->
After adding this line, your code will look like.
</div><!-- #footer --> </div><!-- #container --> <!-- W3TC-include-js-head --> </body> </html>