CSS & JS Optimization
A theme, page builder and several plugins can all contribute styles and scripts. Start with a safe baseline, then use page and asset rules to make deliberate changes where they help.
Reduce CSS with a level you can verify
CSS level 1 minifies; level 2 also groups styles. Levels 3–5 use locally generated used CSS and progressively change original stylesheet delivery: asynchronous loading, loading on interaction, then removal. Grouping and used-CSS removal are alternative approaches.
Used CSS is analyzed locally in PHP without executing a browser. Retain selectors for dynamic menus, overlays, sliders and responsive states, then test them. A clean initial screenshot does not prove a stylesheet is safe to remove.
Change script execution in small steps
JavaScript level 1 minifies while preserving authored blocking behavior; level 2 uses native defer. Level 3 allows selected scripts to be delayed, while level 4 makes delay the default for eligible scripts. Exceptions let you preserve necessary dependencies.
- Check the first click on navigation, forms and product controls.
- Keep consent, payment and dependency ordering under review.
- Available asset actions depend on the asset type and selected level.
Scope the exception instead of changing every page
Use the frontend Optimize this URL action or the optimization editor to work with defaults, content groups and URL conditions. Asset Manager can match sources or attributes and apply supported actions. The first complete matching asset rule wins; combine required actions in that match.