Scripts To Footer
Move your scripts to the footer to speed up perceived page load times and improve user experience.
Please utilize the issues section if you run into problems or have suggestions for making the plugin better. You can also view the most recent official, stable release on the WordPress repo linked below.
See the wiki for specifics on usage, like filters and work-arounds for specific scripts
Download for your WordPress site here: http://wordpress.org/plugins/scripts-to-footerphp/
My scripts are not moving to the footer. This is likely due to one of three things:
The theme you're using is not enqueuing scripts per WordPress standards.
You have a plugin that is not enqueing scripts per standards.
(Less common) There is a conflict with this plugin and another one. Deactivate all plugins and revert to a built-in theme (like TwentyTwelve or TwentyFifteen). Then activate Scripts-to-Footer. Check your HTML source to confirm it's working.
If so, proceed to activate each of your other plugins one at a time, checking your HTML source each time to see if the scripts behavior changes. Eventually you'll find a conflict, if not with the plugins then activate your theme and check.
Please feel free to open a Github Issue to report conflicts or goto the WP.org support forum. If there is something wrong with Scripts-to-Footer, we'll update it. However, if it's a another plugin or theme we can only contact the developer with the issue to attempt to resolve it.
- There are lots of scripts that require things like jQuery in the header. Try checking the "Keep jQuery in the header" option in Settings > Scripts to Footer or using the
stf_exclude_scriptsfilter noted in the documentation (Note: only for version 0.6 and higher).
- My Slider stopped working.
- See number 2.
- My Page Speed hasn't improved (or it's worse)
- This plugin should not change your actual page speed - the same scripts are being loaded, that takes the same amount of time. However, by placing scripts in the footer you can change the precieved load times, moving render-blocking scripts below the fold, allowing your content to load first - instead of loading scripts and slowing the visual portions of your site. That's the whole point. Outside of that, this plugin is not intended to decrease page load speed or minify scripts in anyway. Ultimately, your page speed score is based on more than where you load your scripts and can be altered by moving them, but depending on what these scripts do it can go either way. As with most things, it entirely depends on the unique configuration of your site.
Like this plugin and feeling generous? Please consdier donating to support freelance development.