Skip to content

Adds required tags for Async CSS & deferred JS automatically to all enqueued WordPress scripts & styles.

Notifications You must be signed in to change notification settings

omacranger/async-css-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Async CSS & JS for WordPress

This plugin was developed to enable Async CSS, and deferred JS for for any site using WordPress. On simple sites, it will work out of the box without any additional configuration. Any additional plugins that utilizes inlined JS techniques improperly (such as inlining jQuery options instead of using something like wp_localize_script) might experience errors.

Notice: It is highly recommended to use something like Grunt Critical on a site when utilizing this plugin. Otherwise, there can be a flash of unstyled text / content while the rest of the assets asynchronously load.

It utilizes the loadCSS library as a fallback for browsers that don't support the preload attribute.

Plugins where issues might arise

Any plugin relying on inlined JS can be affected by installing this plugin. Some plugins with known issues I'll list out below, and try to offer some resources (or snippets) on how to fix.

About

Adds required tags for Async CSS & deferred JS automatically to all enqueued WordPress scripts & styles.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages