Title: Uncompressed, Uncached JavaScript &amp; CSS
Last modified: November 23, 2022

---

# Uncompressed, Uncached JavaScript & CSS

 *  [driver49](https://wordpress.org/support/users/driver49/)
 * (@driver49)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/uncompressed-uncached-javascript-css/)
 * I am bringing this site back from the dead, and trying to make it as accessible
   and crawl able as possible.
 * Semrush tells me my WP installation has “2,899 issues uncompressed JavaScript
   and CSS files.” Also (I suspect not coincidentally) I have “2,899 issues with
   uncached JavaScript and CSS files.”
 * Can this be addressed with the right plugin?
 * I have a couple of plugins already that address ‘JavaScript’:
 * Async JavaScript
    Autoptimize Flying Scripts
 * …as prescribed by a tutor I am following…. but while the plugins are activated,
   it’s not clear that they are ‘enabled’ or configured properly …
 * … or if either of them offers the solution to this compression issue.
 * Where do I even start?
 * –PS
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funcompressed-uncached-javascript-css%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/topic/uncompressed-uncached-javascript-css/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/uncompressed-uncached-javascript-css/page/2/?output_format=md)

 *  [ahmadalim](https://wordpress.org/support/users/ahmadalim/)
 * (@ahmadalim)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/uncompressed-uncached-javascript-css/#post-16226507)
 * Hi there,
 * I believe the issue can be solved by utilizing the plugins that you have already
   used. As one of the plugins that you are using is Autoptimize, I recommend asking
   at [Autoptimize Forum](https://wordpress.org/support/plugin/autoptimize/) so 
   the plugin’s/theme’s developers and support community can help you with this.
 * You can also check [this article](http://The Ideal Autoptimize Settings 2022 To Optimize CSS, JavaScript, Misc Settings)
   to help you get the optimal setting for the plugin
 * Hope this helps.
    -  This reply was modified 3 years, 6 months ago by [ahmadalim](https://wordpress.org/support/users/ahmadalim/).
    -  This reply was modified 3 years, 6 months ago by [ahmadalim](https://wordpress.org/support/users/ahmadalim/).
 *  [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/uncompressed-uncached-javascript-css/#post-16226515)
 * Hey, the Autoptimize developer is here already 😉
 * When checking the HTML source code I don’t see any reference to AO being active.
   Can you share Autoptimize’s configuration driver49 ?
 *  Thread Starter [driver49](https://wordpress.org/support/users/driver49/)
 * (@driver49)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/uncompressed-uncached-javascript-css/#post-16228010)
 * Thanks all who replied… especially gratifying to see the AutOptimize guys… very
   cool.
 * You are correct… It had yet to dawn on me that just ‘activating’ the plugin was
   not enough, that it needs to be ‘setup’, too.
 * Duh.
 * So I’m clicking those boxes now…
 * When I put the check mark in “Optimize JavaScript Code?”, the other boxes light
   up with these default settings:
 * In the first tab: [JS, CSS & HTML]
    In the first panel: (JavaScript Options)
 * <Aggregate JS-files?> is not checked.
    <Do not aggregate but defer?> is checked
   <Also defer inline JS?> is checked
 * The panel (CSS Options)
    I put the check in <Aggregate CSS-files?> …but none 
   of the other options are checked.
 * The panel (HTML Options)
    I put the check in <Optimize HTML Code?> …but none 
   of the other options are checked.
 * The next panel (CDN Options)
    wants <CDN Base URL>. in this case, would I enter
   < //cdn.ttbrown.com >?
 * The (Cache Info) panel doesn’t seem to have any options,
 * And the last panel, (Misc Options)
    everything is checked.
 * How ’bout I stop there. I have not clicked either “Save Changes” or “Save Changes
   and Empty Cache” at the bottom of the page.
 * I’m in no hurry, I’ll wait till I see a response here before I pull that trigger.
 * You might also advise re: the [Images] [CriticalCSS] [Extra] and [Optimize More!]
   tabs.
 * Also please check this URL (above)
    You can also check this article to help you
   get the optimal setting for the plugin — the page linked above didn’t open for
   me.
 * Thanks,
 * –PS
 *  [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/uncompressed-uncached-javascript-css/#post-16228055)
 * I would simply activate “optimize JS”, “optimize CSS” and “optimize HTML” and
   click on “save changes” for starters and re-test. Based on the outcome we can
   see what the next steps can be 🙂
 *  Thread Starter [driver49](https://wordpress.org/support/users/driver49/)
 * (@driver49)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/uncompressed-uncached-javascript-css/#post-16228086)
 * Thank you! for that speedy reply…
 * I have done as you suggest and will run an audit and report the results when 
   they come in.
 * The site does not appear to have blown up so… that’s a good thing.
 * In the meantime, after saving the settings I see this atop my Plugins page:
 * “It looks like your site might not have page caching which is a must-have for
   performance. If you are sure you have a page cache, you can close this notice,
   but when in doubt check with your host if they offer this or install a page caching
   plugin like for example WP Super Cache, KeyCDN Cache Enabler, …”
 * Care to weigh in on that?
 * Thanks,
 * –PS
 *  [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/uncompressed-uncached-javascript-css/#post-16228108)
 * well, if you can confirm the site has no page caching and your host does not 
   offer that either (many do), then indeed consider installing e.g. KeyCDN Cache
   Enabler, it will help performance a lot!
 *  Thread Starter [driver49](https://wordpress.org/support/users/driver49/)
 * (@driver49)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/uncompressed-uncached-javascript-css/#post-16228147)
 * The report is in…
 * First, re: the host questions, I have a query in to the (Knownhost) with some
   other input and will let you know when I hear back.
 * As for the setting changed and the Audit run, the total number of ‘Warnings’ 
   has gone down (from ~7,500 to ~7,000) so that’s progress, but re: the Compression
   I still see:
 * 2,709 issues with uncompressed JavaScript and CSS files
    2,709 issues with uncached
   JavaScript and CSS files
 * 387 pages don’t have meta descriptions
    387 uncompressed pages
 * …so I guess there is still more to do, huh?
 * –PS
 *  Thread Starter [driver49](https://wordpress.org/support/users/driver49/)
 * (@driver49)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/uncompressed-uncached-javascript-css/#post-16228192)
 * Here is the reply from my host:
 * – – – – –
 *     ```
       There are a few ways to compress your JS and CSS. You can use a plugin for example:
       ---
       https://blog.litespeedtech.com/2018/03/21/using-the-lscache-plugin-without-litespeed-server/
       ---
   
       We also offer LiteSpeed Web Server licenses, which provides best-in-class caching via LSCache and a host of other features including various forms of page compression.
       ---
       https://blog.litespeedtech.com/2021/03/29/litespeed-web-server-v6-0/
       ---
   
       CloudFlare is a service that sits in between the public internet and your website. They essentially "intercept" traffic to your site (with your consent, of course) and serve visitors a cached copy of the site from their own servers whenever possible. This reduces load on your server and can improve delivery to visitors. Since it receives content before giving it to your visitors, it also has the ability to minify CSS and JavaScript, compress pages, and so on.
   
       Your server is currently configured using PHP-FPM and Apache's Worker MPM. We can switch you over to the Event MPM for added performance. http2 can also be installed.
       ```
   
 * – – – – – –
 * Care to weigh in on any of that?
 * Thanks,
 * –PS
 *  [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/uncompressed-uncached-javascript-css/#post-16228296)
 * Don’t know litespeed well enough, but as for Apache; ask your host if mod_deflate
   and/ or mod_zip are installed (needed for compression) and mod_expires (for cacheability).
   if that is the case [some simple additions](https://gist.github.com/lukecav/c806c253608a7b9abfcb572bf46eb54c)
   to the .htaccess file in the wordpress root directory suffice to get rid of those
   semrush warning.
 * if not you can disable the “serve as static files” option in Autoptimize’s main
   tab and then the number of warnings should go further down.
 *  Thread Starter [driver49](https://wordpress.org/support/users/driver49/)
 * (@driver49)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/uncompressed-uncached-javascript-css/#post-16229208)
 * I’m a little lost now on what has been done and what else needs to be done.
 * My Host informed me that there is “no cost associated with the PHP-FPM+mpm_event
   or http2 changes.” So I asked him to go ahead and implement those.
 * A while later I was advised:
 *     ```
       ===== Configuration After PHP-FPM Changes =====
   
       Domains using each version of PHP:
       ---
       3 ea-php74
       11 ea-php81
       ===
       Domains using PHP-FPM: 14
       ===
       Current PHP handler configuration:
       ---
       DEFAULT PHP: ea-php74
       ea-php74 SAPI: cgi
       ea-php80 SAPI: cgi
       ea-php81 SAPI: cgi
       ===
       Current Apache Configuration:
       ---
       mpm_event_module (shared)
       http2_module (shared)
   
       ===
       Sites running open_basedir: 14
       ```
   
 * – – – –
 * …but sadly I have no idea what a word of that means.
 * I would like to continue configuring Autoptimize, though. Remember the link you
   sent in your first reply to me here was broken, so if there’s stuff I can figure
   out from that please resend the link.
 * I think LiteSpeed (whatever it is) is out of the question because that was going
   to be $36/mo.
 * Are you familiar with Cloudflare? That’s the next thing I am going to look into.
 * I have over 100 things – out of date posts, mostly – that I need to fix before
   I run another Audit w Semrush … maybe over the weekend.
 * Thanks again, and Happy Special Thursday in November Day.
 * –P
 *  [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/uncompressed-uncached-javascript-css/#post-16229698)
 * the “Configuration After PHP-FPM Changes” is just a description of the current
   configuration, it is not actionable by you.
 * in Autoptimize’s main configuration screen (“JS, CSS & HTML”), near the bottom
   untick the “serve as static files” option.
 *  Thread Starter [driver49](https://wordpress.org/support/users/driver49/)
 * (@driver49)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/uncompressed-uncached-javascript-css/#post-16231989)
 * I wonder who is working today…?
 * I don’t see a “serve as static files” option.
 * I do see
 * ‘Save aggregated script/css as static files?’
 * …and since that is the only use of the word ‘static’ under that tab, I unchecked
   that one.
 * There will be more, perhaps over the weekend or early next week.
 * Thanks,
 * –PS
 *  Thread Starter [driver49](https://wordpress.org/support/users/driver49/)
 * (@driver49)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/uncompressed-uncached-javascript-css/#post-16232015)
 * After I changed that setting, the top of my Plugins panel says
 * ‘It looks like your site might not have page caching which is a must-have for
   performance. If you are sure you have a page cache, you can close this notice,
   but when in doubt check with your host if they offer this or install a page caching
   plugin like for example WP Super Cache, KeyCDN Cache Enabler, …’
 * It seems that everything I do… there is something else I have to do (these are
   called “thingdos.”
 * What do those plugins do that Autoptimize doesn’t do?
 * –PS
 *  [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/uncompressed-uncached-javascript-css/#post-16232089)
 * They do page caching (temporarily storing the HTML output that WordPress generates
   and using that to answer requests, thus avoiding the more “costly” WordPress 
   output generation for each and every request) which AO indeed does not do.
 *  Thread Starter [driver49](https://wordpress.org/support/users/driver49/)
 * (@driver49)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/uncompressed-uncached-javascript-css/#post-16248535)
 * Is this thread still active? I guess I’ll find out.
 * Semrush ran another Audit over this past weekend.
 * I now have “916 issues with broken internal JavaScript and CSS files”
 * The first one looks like this:
 * [https://www.ttbrown.com/wp/wp-content/cache/autoptimize/autoptimize_single_6c547e477c9dbf6b05a358fbf47b7a0d.php?ver=3.9.3](https://www.ttbrown.com/wp/wp-content/cache/autoptimize/autoptimize_single_6c547e477c9dbf6b05a358fbf47b7a0d.php?ver=3.9.3)
 * …and the rest look like that but its different numbers in front of the .php?
 * I’ve asked Semrush what’s going on, waiting for a response, so I’m asking here
   too in the meantime.
 * Did I do something wrong here?
 * Should I take this to the Autoptimize user forums?
 * One step forward, two steps back…
 * <*sigh*
 * –PS

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/topic/uncompressed-uncached-javascript-css/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/uncompressed-uncached-javascript-css/page/2/?output_format=md)

The topic ‘Uncompressed, Uncached JavaScript & CSS’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 20 replies
 * 3 participants
 * Last reply from: [driver49](https://wordpress.org/support/users/driver49/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/uncompressed-uncached-javascript-css/page/2/#post-16249395)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
