Title: Cache Dynamic Loaded CSS enable or no?
Last modified: May 26, 2021

---

# Cache Dynamic Loaded CSS enable or no?

 *  Resolved [zaphiref](https://wordpress.org/support/users/zaphiref/)
 * (@zaphiref)
 * [5 years ago](https://wordpress.org/support/topic/cache-dynamic-loaded-css-enable-or-no/)
 * I am running a WordPress website which I know is a dynamic website, it is a recipes
   website created using Elementor on the Hello theme. Under the Cache Dynamic Loaded
   CSS option it reads:
    Please do not enable this option unless you have non-static(
   dynamic) loaded CSS
 * How do I know whether I have a non-static (dynamic) loaded CSS?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Gabe Livan](https://wordpress.org/support/users/gabelivan/)
 * (@gabelivan)
 * [5 years ago](https://wordpress.org/support/topic/cache-dynamic-loaded-css-enable-or-no/#post-14523171)
 * [@zaphiref](https://wordpress.org/support/users/zaphiref/) Static files are the
   ones that end with .css and .js and they exist in their location. Most of the
   assets loaded are static and they are loaded from plugins and the theme. If there’s
   a reference to a file from _/wp-content/plugins/hello/style.css_ and when you
   browse the directories of your website (e.g. via a file manager from your hosting
   company or SFTP) and “style.css” is located in “/wp-content/plugins/hello/”, 
   then you know you’re dealing with a static file.
 * By non-static, the plugin refers to anything that is like _/?action=load-css_
   or _/style.php?load-css=1_. The reference is to a PHP file that is loading CSS
   content based on certain conditions. It’s often a bad practice as I’ve noticed
   that developers load the whole WP environment just to print a few KB of CSS because
   they were too lazy or just didn’t know how to generate static files that are 
   read faster and also fewer resources are used as a result.
 * Even if the page is cached using a plugin such as WP Rocket, the caching is not
   applied to the CSS content loaded from _/?action=load-css_ via the LINK (rel=”
   stylesheet”) tag. So, the WP environment is loaded twice in this case which is
   not ideal. Some developers optimized the way the CSS is retrieved but still, 
   I’ll prefer to go static all the way. Generate the static files based on conditions,
   store them in a caching directory, then reference them or just print them as 
   inline CSS code via STYLE tag if the content is not too large.

Viewing 1 replies (of 1 total)

The topic ‘Cache Dynamic Loaded CSS enable or no?’ is closed to new replies.

 * ![](https://ps.w.org/wp-asset-clean-up/assets/icon-256x256.png?rev=1981952)
 * [Asset CleanUp: Page Speed Booster](https://wordpress.org/plugins/wp-asset-clean-up/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-asset-clean-up/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-asset-clean-up/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-asset-clean-up/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-asset-clean-up/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-asset-clean-up/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Gabe Livan](https://wordpress.org/support/users/gabelivan/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/cache-dynamic-loaded-css-enable-or-no/#post-14523171)
 * Status: resolved