|Author:||Gary Jones (profile at wordpress.org)|
|WordPress version required:||3.0|
|WordPress version tested:||4.8.0|
|Added to WordPress repository:||24-05-2011|
|Total downloads:||1 552|
Click to start download
- Unzip and upload
genesis-js-no-jsfolder to the
- Activate the plugin through the ‘Plugins’ menu in WordPress
Once installed and activated, then the plugin will work. There are no options, and nothing to set-up.
What does this plugin actually do?
If you look at the source of a WordPress back-end page, you’ll see it has a body class of
no-js. Immediately after the opening
body tag is a small script which replaces
js (you can see the amended class with Firebug / Inspector).
This plugin recreates the same effect, but for the front-end of Genesis Framework child themes.
Shouldn’t the script be at the end of the page?
Usually, yes, but it’s a fairly small script, so does not block rendering of other content for any noticeable length of time.
Doing it immediately also reduces a flash of incorrectly styled content, as the page does not load with
no-js styles, then switch to
js once everything has finished loading.
- Load plugin text domain.
- Better change log format.
- Tweak documentation.
- GitHub Updater plugin support
- Refactor class into a new file. Stops using half-implemented Singleton pattern.
- Update documentation.
- Improved plugin so script is hooked in with priority 1 – avoids a theme placing anything before the script (props Josh Stauffer)
- First public version.