Title: Website breaks, probably CSS not loading
Last modified: April 22, 2024

---

# Website breaks, probably CSS not loading

 *  [peterhel](https://wordpress.org/support/users/peterhel/)
 * (@peterhel)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/website-breaks-probably-css-not-loading/)
 * Hello!
 * From time to time my website breaks. It’s showing a white page with only the 
   text without any design then. It seems like the CSS isn’t being loaded.
 * As an admin I don’t see the problem (Plugin not enabled for logged users). But
   normal visitors see the broken page.
 * Clearing the cache helps for the moment. But I need a permanent solution. Can
   you help?
 * Thank you!
   Peter
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwebsite-breaks-probably-css-not-loading%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Denis Ryabov](https://wordpress.org/support/users/dryabov/)
 * (@dryabov)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/website-breaks-probably-css-not-loading/#post-17703281)
    1. What web server are you using (Apache/Nginx/whatever)?
    2. Do you have error messages in PHP’s error_log file?
    3. Do you have “Critical CSS” enabled in the “Eliminate render-blocking resources”
       section of the Advanced settings?
 *  Thread Starter [peterhel](https://wordpress.org/support/users/peterhel/)
 * (@peterhel)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/website-breaks-probably-css-not-loading/#post-17705736)
 * Thanks for your quick response!
   1. We are using the standard WordPress Docker
   image, which runs with Apache2.2. No plugin-related errors.3. Yes, that is enabled.
   What does that mean?
 *  Plugin Author [Denis Ryabov](https://wordpress.org/support/users/dryabov/)
 * (@dryabov)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/website-breaks-probably-css-not-loading/#post-17705775)
 * If the problems only occur on the front page, then there is most likely a conflict
   with the Critical CSS setting somewhere, and the solution is to disable it.
 * If not, then the problem may be that the pages are cached somewhere else (not
   in the PageSpeed Ninja plugin), so that when PageSpeed Ninja considers that certain
   optimized style and script files are outdated and can be safely deleted, the 
   pages that use them are still available through some other cache (webserver’s
   cache, another caching plugin, caching frontend proxy, etc.). As far as I can
   remember, the wordpress:apache container itself does not use caching. So, do 
   you have any other optimization or caching-related plugins installed?
 *  Thread Starter [peterhel](https://wordpress.org/support/users/peterhel/)
 * (@peterhel)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/website-breaks-probably-css-not-loading/#post-17709228)
 * Okay, I have disabled the Crirical CSS setting. Let’s see if it helps!
 * Thank you!
 *  Plugin Author [Denis Ryabov](https://wordpress.org/support/users/dryabov/)
 * (@dryabov)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/website-breaks-probably-css-not-loading/#post-17820973)
 * Right now I see an inconsistency on your site (some /s/*.css files don’t exist)
   between the page cache and the internal cache that synchronizes the time-to-live
   of files in the /s directory (it turns out that there is a page cache file, there
   is an internal cache file, but there are no files referenced by the internal 
   cache). In such a situation, you need to Clear All the Cache and the Page Cache
   in the Troubleshooting section (see Advanced Settings).
 * I’ll try to run some more tests with the Docker container and a short time-to-
   live value, maybe I’ll be able to reproduce this bug eventually. Tell me, do 
   you mount additional directories or volumes when you start docker? If so, how
   do you mount them (volume or bind)? And are there any symbolic links at the root
   of the site (or higher in the directory hierarchy)?
 * Also, could you tell, what your value is for the “Caching Time-to-live” parameter(
   see Advanced Settings)? It is also possible that you manually cleared the cache
   earlier, but did not clear the page cache in the Troubleshooting section. This
   can also cause inconsistencies, but most likely the problem is somewhere else.
 *  Plugin Author [Denis Ryabov](https://wordpress.org/support/users/dryabov/)
 * (@dryabov)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/website-breaks-probably-css-not-loading/#post-17821936)
 * Unfortunately, my experiments with Docker and the debug build of the PageSpeed
   Ninja plugin didn’t reveal any issues with the page cache. The cache cleaner 
   script correctly removes the internal cache and related files in the /s directory.
 * I used a standard docker-compose.yml from [https://hub.docker.com/_/wordpress](https://hub.docker.com/_/wordpress).
   Could you provide more details about your specific Docker settings or any additional
   plugins that might be affecting caching?
 *  Thread Starter [peterhel](https://wordpress.org/support/users/peterhel/)
 * (@peterhel)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/website-breaks-probably-css-not-loading/#post-17829321)
 * Thanks a lot for diving into our issue again. Especially since we still experience
   the same problem every few days.
 * As you describe, manually clearing the cache solves it. But only for that moment.
 * We are using the official Docker WordPress image without anything fancy. No special
   configuration. /var/www/html as bind mount, nothing else. No symlinks.
 * Would taking a look at our other plugins help?
 *  Plugin Author [Denis Ryabov](https://wordpress.org/support/users/dryabov/)
 * (@dryabov)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/website-breaks-probably-css-not-loading/#post-17829673)
 * > Would taking a look at our other plugins help?
 * Could you send the list of active plugins to [hello@pagespeed.ninja](https://wordpress.org/support/topic/website-breaks-probably-css-not-loading/hello@pagespeed.ninja?output_format=md)?
   I’ll try to check which ones might be interfering with PageSpeed Ninja.
 * Also, could you check the container logs for possible errors (maybe an error 
   in the PHP file, or execution timeout, etc.)?

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

The topic ‘Website breaks, probably CSS not loading’ is closed to new replies.

 * ![](https://ps.w.org/psn-pagespeed-ninja/assets/icon.svg?rev=1722219)
 * [PageSpeed Ninja - Cache, Minify, Defer CSS JavaScript, Critical CSS, Optimize Images, Convert WebP](https://wordpress.org/plugins/psn-pagespeed-ninja/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/psn-pagespeed-ninja/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/psn-pagespeed-ninja/)
 * [Active Topics](https://wordpress.org/support/plugin/psn-pagespeed-ninja/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/psn-pagespeed-ninja/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/psn-pagespeed-ninja/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)

 * 8 replies
 * 2 participants
 * Last reply from: [Denis Ryabov](https://wordpress.org/support/users/dryabov/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/website-breaks-probably-css-not-loading/#post-17829673)
 * Status: not resolved