DEMO:
Defers render blocking CSS and inserts above-the-fold (critical path) CSS in the header. For home-, product- and category pages seperately.The critical path CSS can be obtained from an internal scanner and has to be pasted into the module.
addons.prestashop.com
Features
Critical Path (above-the-fold) CSS manager.
Defers render-blocking CSS if Critical Path management is activated.
Options to activate or disable for home page, product pages and category pages separately.
Get your above-the-fold CSS from the reliable internal scanner, paste it into the manager, save and you are done.
Remove unused CSS.
As a bonus you receive the option to use clean css from unused CSS rules.
Here also you can choose to do home-, category- or product pages separately.
If on a page the critical path CSS is used, you can choose an option to replace the regualr CSS by cleaned CSS (Uncss). This saves up to 80% in file size, Especially in Bootstrap-based themes.
Please note: This option however should be used with care. On heavily styled sites this option is considered a high risk to break the lay-out.
Recommendation
For Prestashop 1.6 sites this only works when Javascript is moved to the bottom.
What's New in Version 1.1.0(05/06/2021)
- Added scanners
- Revamped defer mechanism to work with http/2 servers