
Minifying means taking the spaces, line breaks and comments out of a CSS or JavaScript file so it weighs less. A plugin such as LiteSpeed Cache does it with one click, and it is also one of the options that breaks most sites. The gain is usually small (the server already compresses text files) and the risk is a menu that will not open or a form that will not send. So: one option at a time, with a test and with an escape route.
What each option does, and the risk
| Option | What it does | Risk |
| Minify CSS or JS | Strips spaces and comments. | Low. It rarely breaks anything; when it does, it is a badly written file. |
| Combine CSS or JS | Joins several files into one. | Medium. With HTTP/2 it gains almost nothing. See HTTP/2 and HTTP/3. It can change the load order and break themes. |
| Defer JS | The script only runs after the page has been drawn. | High. Menus, carousels and forms that depend on the script can fail at start-up. |
| Critical CSS / unused CSS | Generates the CSS for what shows first separately, and loads the rest later. | High. The page can show unstyled for a moment, or with blocks missing. |
The safe order, step by step
|
|
|
|
|
|
| Cannot get into the WordPress dashboard after switching an option on? Deactivate the plugin by renaming its folder in wp-content/plugins, as explained in disabling plugins, including when you cannot get in. The site opens again without the optimisations, and then you can reactivate the plugin and switch off the guilty option. |
| Do not minify twice. Files whose name already ends in .min.css or .min.js arrive minified. If two plugins both minify, switch one off. |
| The gain is elsewhere. On many pages the images and third-party scripts weigh more than the CSS and JS themselves. Check what the Network tab’s file list shows as heaviest before spending an afternoon on this. Reading the warnings is covered in PageSpeed Insights warnings explained. |
|
An optimisation option broke the look of the site and you do not know which? Tell us the address and what you changed. Open a support ticket |
RECOMMENDED PRODUCT Web hosting with cPanel Domain and SSL included, daily backups and the panel you already know. from $10.00/mo See plans |
- 0 Users Found This Useful











