Title: WP Rocket | Simple LoadCSS Preloader
Author: ensemblebd
Published: <strong>October 29, 2018</strong>
Last modified: Avrigl 1, 2023

---

Search plugins

![](https://ps.w.org/enhance-wp-rocket-loadcss/assets/banner-772x250.jpg?rev=1965162)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/enhance-wp-rocket-loadcss/assets/icon-256x256.jpg?rev=1965162)

# WP Rocket | Simple LoadCSS Preloader

 By [ensemblebd](https://profiles.wordpress.org/ensemblebd/)

[Telechargiada](https://downloads.wordpress.org/plugin/enhance-wp-rocket-loadcss.zip)

 * [Details](https://roh.wordpress.org/plugins/enhance-wp-rocket-loadcss/#description)
 * [Reviews](https://roh.wordpress.org/plugins/enhance-wp-rocket-loadcss/#reviews)
 * [Development](https://roh.wordpress.org/plugins/enhance-wp-rocket-loadcss/#developers)

 [Support](https://wordpress.org/support/plugin/enhance-wp-rocket-loadcss/)

## Descripziun

### Deprecated

This plugin is deprecated and will be removed in the future.
 It was coded back 
in 2019 when WpRocket did not have asynchronous support for CSS. Although this plugin
operates at a lower level (main php buffer), which helps apply loadsCSS to ALL styles
regardless of whether they conform to wp_enqueue or not, **we recommend** instead
using WpRocket’s system: [Load CSS Asynchronously](https://docs.wp-rocket.me/article/1266-load-css-asynchronously).

### Description

Simple high performance plugin to enhance WP Rocket’s css output to use the loadCSS
preload polyfill.
 This will ensure **any css** being loaded via the page output**
is deferred**, and utilizing a preload [rel] attribute. Note: This will not affect
admin pages. It’s designed only to process front-end pages.

It is recommended to enable the WP Rocket setting for „Optimize CSS“, which will
provide your pages with inline Critical-CSS.
 That way an unstyled flash is not 
seen on page load (if properly configured of course).

**This plugin will boost your [Lighthouse](https://developers.google.com/web/tools/lighthouse/)
and [PageSpeed Insight](https://developers.google.com/speed/pagespeed/insights/)
scores.**

### Plugin Mission

We hope that [WP Rocket](https://wp-rocket.me/) will implement this as a **feature**
of their plugin.
 The existing [Load CSS Asynchronously](https://docs.wp-rocket.me/article/1266-load-css-asynchronously)
only works for supported wp_enqueue styles, which not all plugins/themes properly
utilize. For normal users, we recommend using WP Rocket’s system instead of this
plugin.

### Requirements:

 * If you intend for logged-in users to see the effect, you must enable WP-Rocket’s
   setting called „caching for Logged-In Users“
 * Alternatively, you can run the plugin without WP-Rocket, despite it’s intended
   purpose. (>^.^)>

### Features:

 * [FilamentGroup’s LoadCSS(v2.0.1)](https://github.com/filamentgroup/loadCSS/tree/v2.0.1)
   inline injector
    (optional – see settings page next to WP Rocket), _triggered
   via wp\_head_
 * High performance Regular Expression approach to process WP Rocket’s (php’s) output
   buffer, to replace stylesheets with the appropriate loadCSS syntax
 * Option to enable the buffer processor when you don’t have WP Rocket installed.
   **
   This will respect AMP pages, and Yoast Sitemap output (by not executing). No 
   other considerations have been implemented.

No fluff. Just a robust loadCSS implementation.

You can see how it works, & measure the performance, with this(via repl.it): [Run the Plugin’s code](https://repl.it/@ensemblebd/WPRocketLoadCSSMeasurement)

Just paste your own page’s url or html into the appropriate variable @ the top.

And you can test this plugin’s regex as well: [WordPress.com html – links filtered by regex](https://regex101.com/r/xsugT7/1/)

Github link is here: [Click](https://github.com/ensemblebd/wp-rocket-loadcss)

### Last tested with:

 * WP Rocket 3.13.x
 * WordPress 6.2.x

### Dependencies

 * WP Rocket (optional via settings)
 * file_get_contents() php function (if included loadCSS lib is used via options—
   default = yes)

## Maletgs dal visur

 * [[
 * Settings Page
 * [[
 * Resultant HTML
 * [[
 * Sample Measurement
 * [[
 * Sample Regex

## FAQ

 * Where are the settings?
    Right next to WP Rocket underneath the standard WordPress
   Admin -> Settings
 * Can I use this without WP Rocket?
    Yes, just make sure and check the box to do
   so under settings.
 * What ignore conditions are supported at this time?
    Yoast XML sitemap, and AMP
   pages. By default all Admin pages are ignored.

## Reviews

![](https://secure.gravatar.com/avatar/0f69d380160ebbc447cfe435998d3ae6673867a93b37e0dd64db1e64e26a7c95?
s=60&d=retro&r=g)

### 󠀁[Charged me an annual fee for a plug in I never had](https://wordpress.org/support/topic/charged-me-an-annual-fee-for-a-plug-in-i-never-had/)󠁿

 [justsaying](https://profiles.wordpress.org/prisonsorguk/) Fanadur 17, 2023

BE CAREFUL. I was charged an annual fee for thus plugin I never installed

![](https://secure.gravatar.com/avatar/9079c016b65652c1acc8fb15963f2bdeeee18d1890e7fa8b599049842f4cd45f?
s=60&d=retro&r=g)

### 󠀁[Broken](https://wordpress.org/support/topic/broken-658/)󠁿

 [greendragontech](https://profiles.wordpress.org/greendragontech/) Favrer 26, 2021

Completely killed site. Could not connect to database after activation. Had to manually
remove from plugins folder to resolve.

 [ Read all 2 reviews ](https://wordpress.org/support/plugin/enhance-wp-rocket-loadcss/reviews/)

## Contributors & Developers

“WP Rocket | Simple LoadCSS Preloader” is open source software. The following people
have contributed to this plugin.

Contributors

 *   [ ensemblebd ](https://profiles.wordpress.org/ensemblebd/)

“WP Rocket | Simple LoadCSS Preloader” has been translated into 1 locale. Thank 
you to [the translators](https://translate.wordpress.org/projects/wp-plugins/enhance-wp-rocket-loadcss/contributors)
for their contributions.

[Translate “WP Rocket | Simple LoadCSS Preloader” into your language.](https://translate.wordpress.org/projects/wp-plugins/enhance-wp-rocket-loadcss)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/enhance-wp-rocket-loadcss/),
check out the [SVN repository](https://plugins.svn.wordpress.org/enhance-wp-rocket-loadcss/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/enhance-wp-rocket-loadcss/)
by [RSS](https://plugins.trac.wordpress.org/log/enhance-wp-rocket-loadcss/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.5

 * Fix for rare but possible scenario where plugin could crash if function isn’t
   available. is_plugin_active()

#### 1.4

 * Fixed bugs with get_option() variable usage(proofing conditions), wrapped executions
   in try/catch to prevent potential for an exception to bubble up and crash site,
   and added logging for exceptions.
 * Adjusted readme to indicate DEPRECATED status of this plugin, being that WpRocket
   now has an asynchronous css loader.

#### 1.3

 * Adjusted the main runtime to utilize better detection for string replacement,
   to handle more scenarios (just in case).

#### 1.0

 * Release date: October 29, 2018

## Meta

 *  Version **1.5**
 *  Last updated **avant 3 onns**
 *  Active installations **4'000+**
 *  Languages
 * [Dutch](https://nl.wordpress.org/plugins/enhance-wp-rocket-loadcss/) e [English (US)](https://wordpress.org/plugins/enhance-wp-rocket-loadcss/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/enhance-wp-rocket-loadcss)
 *  [Advanced View](https://roh.wordpress.org/plugins/enhance-wp-rocket-loadcss/advanced/)

## Ratings

 1 out of 5 stars.

 *  [  0 5-star reviews     ](https://wordpress.org/support/plugin/enhance-wp-rocket-loadcss/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/enhance-wp-rocket-loadcss/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/enhance-wp-rocket-loadcss/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/enhance-wp-rocket-loadcss/reviews/?filter=2)
 *  [  2 1-star reviews     ](https://wordpress.org/support/plugin/enhance-wp-rocket-loadcss/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/enhance-wp-rocket-loadcss/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/enhance-wp-rocket-loadcss/reviews/)

## Contributors

 *   [ ensemblebd ](https://profiles.wordpress.org/ensemblebd/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/enhance-wp-rocket-loadcss/)