Skip to main content
Agency Program Get 2× more leads and save 50% on hosting. Built for agencies ready to grow. Book a call
Scripts To Footer icon

Scripts To Footer

v0.7.2
by Joshua David Nelson · 4.7 (37 reviews)

Move your scripts to the footer to help speed up perceived page load times and improve user experience.

9K+ active installs Updated Dec 18, 2023 Tested to 6.4.5 Requires PHP 7.4
Try Demo Download
Pre-installed Ready in ~10s No card

About Scripts To Footer

This plugin moves scripts to the footer of your website, but it only works if your plugins and theme use the correct script enqueueing method. You can disable the plugin on specific pages and posts, as well as on archive pages, using the settings page. If you encounter any issues, you can try placing jQuery back into the header or use the provided filter to exclude specific scripts from being moved to the footer.

Screenshots

Scripts To Footer screenshot
Scripts To Footer screenshot

Changelog

0.7.2

  • Tested up to WordPress 6.4.2.
  • Bump minimum WordPress version to 5.3, aligning with minimum PHP support.
  • A bunch of code tidy, fix coding standards, typos, and CI. h/t @szepeviktor
  • Add github actions

0.7.1

  • Remove duplicated plugin header to fix fresh install error.

0.7.0

  • Update tested WP up to 6.1.1
  • Update minimum PHP to 7.4
  • Restructuring files to match plugin boilerplate structure.

0.6.4.1

  • Update Github Action to publish from github to WP.org.

0.6.4

  • Removed unnecessary logging functions and added a debug check before logging anything.
  • Tidy up code spacing and inline-documentation.
  • Added STF_DEBUG for use in error logging function with WP_DEBUG, both must be true before error logging is output to the debug.log file.

0.6.3

Moved the ‘set_header_scripts’ function into a ‘wp_head’ add_action to allow for conditional checks to work within the ‘stf_exclude_scripts’ filter.

0.6.2

Added support for disabling plugin on 404 pages, thanks to Alex (@piscis on GitHub)

0.6.1

Updates custom taxonomy check for custom taxonomy archives and some error logging functions.

0.6.0

Large number of improvements:
– Add settings page with global disable options for home page, search pages, post type archives, taxonomy archives, and other archives.
– Update uninstall.php to remove things correctly.
– Add FAQ to readme.txt and readme.md.
– Add a changelog as a separate file.
– Change the custom post type filter. Refer to updated FAQ and documentation.
– Add support for custom taxonomy archives.
– Change the exclude filter, to be more relevant to the new options. Older filter is deprecated, but still supported for backwards compatibility.
– Update the post meta for disabling the plugin on specific posts/pages.
– Add Github Updater support.
– Removed CMB and built metaboxes the old fashion way.
– Added debug logging to better track any potential errors moving forward.

0.5

Reverted metabox version to previous – invalid error was sneaking through.

0.4

Added filter to exclude pages, updated metabox version, plugin version bump and updated readme.txt file.

0.3

Added conditional to disable on plugin on admin dashboard, version bump.

0.2

Updating code to be object-oriented and added page metabox to disable plugin on specific pages.

0.1

Initial release

Try other plugins

Really Simple SSL icon

Really Simple SSL

4.9 · 4M+ installs

The easiest way to improve security! Leverage your SSL certificate and protect your website visitors.