Title: Stylesheet loading bug
Last modified: September 13, 2021

---

# Stylesheet loading bug

 *  [futurety](https://wordpress.org/support/users/futurety/)
 * (@futurety)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/stylesheet-loading-bug/)
 * After installing the JCH optimize plugin and using the premium setting on the
   combined CSS and JS files an erratic bug has appeared. Sometimes when a user 
   loads the page the stylesheet will not load properly and the page will only be
   blue text aligned on the left side without any CSS.
 * The site is hosted on WP Engine which uses it’s own caching that cannot be disabled,
   so I’m concerned this plugin may not be able to function when hosted on WP Engine.
 * I’ve cleared both the cache on JCH Optimize as well as the WP engine cache and
   that gets rid of the bug, but only for a few days. It eventually works its way
   back and becomes prevalent.
 * Has anyone dealt with this issue or something similar? Thanks in advance!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fstylesheet-loading-bug%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [codealfa](https://wordpress.org/support/users/codealfa/)
 * (@codealfa)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/stylesheet-loading-bug/#post-14885669)
 * Try to set the cache lifetime on the JCH Optimize files to a time that is much
   longer than the lifetime of the Cache set on WP Engine.
 * JCH Optimize will delete its cache after they’ve expired so I suspect that the
   files were deleted but the links to the files were still cached on the page on
   WP Engine.
 * Setting the lifetime of JCH to a longer time (at least twice) mitigates the chances
   of deleted files being cached.
 *  [jgsanchezg](https://wordpress.org/support/users/jgsanchezg/)
 * (@jgsanchezg)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/stylesheet-loading-bug/#post-14940105)
 * I am facing a similar issue but in my case setting the lifetime of JCH cache 
   to longer time did not fix it, neither to clean cache on on JCH Optimize or WPEngine.
 * What I am seeing on my site, when I open the DevTools and inspect the JCH files,
   is the error message: “File [/nas/content/live/[myenvironment]/static/[mycssfile].
   css] not found”. How is that path being obtained and how can I validate its integrity.
 * If I disable the JCH plugin then everything works just fine.
    -  This reply was modified 4 years, 7 months ago by [jgsanchezg](https://wordpress.org/support/users/jgsanchezg/).
 *  Plugin Author [codealfa](https://wordpress.org/support/users/codealfa/)
 * (@codealfa)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/stylesheet-loading-bug/#post-14941468)
 * If clearing the cache doesn’t resolve the issue then I’m afraid this is a different
   issue to what was described.
 * The path you described doesn’t look familiar. It seems that the plugin is having
   trouble locating a file on the server. Perhaps this file is a dynamic file that
   was rewritten using url rewrite to look like a static file so you wouldn’t find
   a file at the location pointed to by the path.
 * Try excluding this file from the plugin and see if that works.
    -  This reply was modified 4 years, 7 months ago by [codealfa](https://wordpress.org/support/users/codealfa/).
      Reason: Typo

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Stylesheet loading bug’ is closed to new replies.

 * ![](https://ps.w.org/jch-optimize/assets/icon-128x128.png?rev=1135491)
 * [JCH Optimize](https://wordpress.org/plugins/jch-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jch-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jch-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/jch-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jch-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jch-optimize/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [js](https://wordpress.org/support/topic-tag/js/)
 * [optimization](https://wordpress.org/support/topic-tag/optimization/)
 * [WP engine](https://wordpress.org/support/topic-tag/wp-engine/)

 * 3 replies
 * 3 participants
 * Last reply from: [codealfa](https://wordpress.org/support/users/codealfa/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/stylesheet-loading-bug/#post-14941468)
 * Status: not resolved