Does Google complain about render-blocking CSS? Finally. The solution is here: the Critical Path CSS manager.
Above the fold CSS optimization so far has been tedious and required a lot of technical work. Critical Path CSS manager will eliminate render-blocking CSS resources and makes above-the-fold CSS management easy.
Delaying execution of CSS will result in a flash of unstyled content when the page is loaded. To solve that, you need styling, but only for the current view, also called “above-the-fold CSS”, or officially “Critical Path CSS”. This will solve the temporary unstyled content. This CSS is not render-blocking, as it is necessary to paint (= render) the screen in view. Deferring the CSS will only be activated, when above-the-fold CSS is inserted.
Obtain your copy from the Prestashop Addon store and install the module as usual. Then access the configuration screen. Here you will see 3 buttons:
As a default the button settings are set to “No”, which means that the module has been deactivated. Critical Path management can be activated separately for the Home page, the product pages and the category pages.
If you set a button to “Yes”, the input box for the critical rending path CSS appears. If you activate for all three page types it will look like this:
Critical Path CSS Manager has a very effective native tool to scan for critical path CSS. Get your above-the-fold CSS from this scanner.
If you have any questions or remarks, then you are welcome to put your remarks in the comments. The preferred method however is to submit (completely privately) your question here>>
https://prestashop.nivo-media.nl/ is the official demo site. Please do look at the HTML source.
(Please note: Tests were performed on the demo site and without minified HTML, so you can review the HTML source easier). The results of Google’s PageSpeed insights for the home page can be viewed here>> The difference in score can be viewed here>> Conclusion for the home page: For desktop a difference of 85 versus 100 with module. For mobile a diffence of 95 versus 100 with module. (Results may vary). Try it yourself for https://prestashop.nivo-media.nl/?nm_vars=2 (without module) and https://prestashop.nivo-media.nl/ (with module)
2 gedachten over “Eliminate render-blocking CSS in Prestashop”
Hebben jullie deze module Critical CSS module ook voor prestashop 1.7?
Ik zal mijn best doen zo snel mogelijk een 1.7 versie klaar te hebben.
Zoals ik je privé heb gemeld is een nieuwe versie van de 1.6 module bijna klaar, waarna ik me zal gaan storten op de 1.7 versie, waar inmiddels veel vraag naar is.
Houdt de PS add-on pagina in de gaten of mail me over een maand nog eens.