Selectively loads Javascript files based on the blog section visited (index, category, single post, page)
Author: | Alessandro Melandri (profile at wordpress.org) |
WordPress version required: | 2.7 |
WordPress version tested: | 2.8.4 |
Plugin version: | 1.1 |
Added to WordPress repository: | 13-09-2009 |
Last updated: | 14-09-2009
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 0 |
Rated by: | 0 |
Plugin URI: | http://www.melandri.net/projects/selective-ja... |
Total downloads: | 830 |
Click to start download |
This plugin will try to load different Javascript files based on the blog section that is being viewed.
It can be really useful if you make extensive use of Javascript in your theme and want to split the code in different files and load functions only when you need them.
When activated, the plugin will do the following:
- On Index page: will try to load the
index.js
file - On Single post: will try to load the
single.js
file - On Category: will try to load the
category-cat_slug.js
file. If the file doesn't exists it will try to load thecategory.js
file. - On Page: will try to load the
page-page_slug.js
file. If the file doesn't exists it will try to load thepage.js
file.
You can define which .js files should be loaded from the plugin settings page.