JavaScript AutoLoader

Description

This Plugin allows you to load additional JavaScript files without the need to change files in the theme directory

Usage

To load additional JavaScript files just put them into a directory named jsautoload. This directory can be placed in three different locations that are loaded in the following order:

  • Child Theme dependent (if using a Child Theme) : in the Child Theme’s directory
  • Theme dependent : in the Theme’s directory
  • Theme independent : in the wp-content directory

Only files with extension .js are added, all other files are ignored. Subdirectories can be used and will also be scanned. To ignore a complete directory (including all subdirectories) name the directory beginning with an underscore (_). The files are added in alphabetical order. Directories always are added after files.

To load one ore more JavaScript files at the end of your HTML file just place them into a directory named footer. To add the files to the footer of your theme it is required to call wp_footer() in your footer.php.

Need more information?

See Plugin Homepage

Do you like the JavaScript AutoLoader Plugin?

Thanks, I appreciate that. You don’t need to make a donation. No money, no beer, no coffee. Please, just tell the world that you like what I’m doing! And that’s all.

More plugins from Peter

Screenshots

  • Go to 'Tools' -> 'JS AutoLoader' in your WordPress dashboard to see the possible paths where to store your JavaScript files and the currently loaded files

FAQ

None yet

Reviews

Perfect Solution

I needed to inject some js into each page on the website. This plugin works perfectly. You just create a folder, ftp the javascript into the folder and that’s all.
Works 100% with no fuss or bother.

Extremely Handy

Very nice to have when creating a new site or working on a project and would like to easily and quickly load some custom js.

Read all 7 reviews

Contributors & Developers

“JavaScript AutoLoader” is open source software. The following people have contributed to this plugin.

Contributors

“JavaScript AutoLoader” has been translated into German. Thank you to the translators for their contributions.

Translate “JavaScript AutoLoader” into your language.

Interested in development?

Browse the code or subscribe to the development log by RSS.

Changelog

2.1 (2017-07-10)

  • add trailing slash to all paths (see this topic)

2.0 (2017-06-14)

  • redesigned admin interface
  • code improvement

1.4 (2016-10-06)

  • some code redesign, no functional changes

1.3 (2016-04-20)

  • translation files removed, using GlotPress exclusively
  • standardization

1.2 (2015-03-11)

  • Spanish translation

1.1 (2014-11-08)

  • Technical Improvements
  • WP 4.0 Style
  • German translation

1.0 (2013-09-13)

  • Initial Release