|Software Type||WordPress Plugin|
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
You can use as many subdirectories as you like. Only files with extension
.js are added, all other files are ignored. To ignore a complete directory (including all subdirectories) name the directory beginning with an underscore (
_). The files are added in alphabetical order, so you can define the sequence of loading by the file names. Directories allway are added after files (e.g.
zzz.js ist loaded before
aaa/whatever.js, not after).
footer directory will be loaded in the footer. To add the files to the footer of your Theme it is required to call
wp_footer() in your
Example of loading order
Demo is available at wp-js-autoloader.demo.smartware.cc.