WP Manifestindependent plugin directory
manifest / performance / async-css-js

Async CSS & JS

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

by Logan Graham · github.com/omacranger/async-css-js · website

3stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/omacranger/async-css-js/archive/refs/heads/master.zip

From the readme

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 wplocalizescript) 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. Gravity Forms - Pretty good fix here

Read the full README on GitHub →