Whenever you unload certain CSS/JS files, you expect to either see an immediate increase in the Google PageSpeed Insights / GTMetrix score or not loaded when you test the page in Incognito (visiting it as a guest, while you’re not logged-in). However, this doesn’t always happen. Here are a few known causes: 1) You’re using […]
Category: Caching
How CSS/JS are created within the caching directory
The purpose of the CSS/JS caching directory which by default is /wp-content/cache/asset-cleanup/ (it can be changed to a custom location) is allowing faster access to optimized files (e.g. minified/combined or altered in any way) and save resources by avoiding the optimization to be performed on each page request. For example, you might have 20 stylesheet […]
Clearing CSS/JS Files Caching
Cached versions of the loaded CSS/JS files are generated and stored in /wp-content/cache/asset-cleanup/ (or a directory that you choose) if you’re using any of the options from these tabs, within “Settings” -> “Minify CSS & JS Files”, “Combine CSS & JS Files”. The moment you use “Clear CSS/JS Files Cache” from the Admin Bar’s “Asset […]
How to change the CSS & JS storage directory
Whenever an external CSS/JS file has to be altered due to any of the settings applied in the plugin (this includes: Minify/Combine CSS/JS, altering @font-face for CSS, altering Google Fonts URL, inline large CSS/JS files), a storage directory for the minified & concatenated files are needed so that the optimized files are retrieved much faster […]