When doing a PageSpeed Insights test, we received the Optimize CSS Delivery:

  • Bootstrap: jsdliver.net
  • Google Fonts: googleapis.com
  • Advagg Bundled CSS: localhost

When we enable Deferred CSS Execution to any of the options, it shows the site without any proper styles for a split second and then renders the site when the CSS is loaded. Is there anyway to achieve the Pagespeed Insights' Optimized CSS Delivery without breaking the CSS for a split second?

Comments

pdesai created an issue. See original summary.

mikeytown2’s picture

Inlining critical CSS is what you're looking for and it's not easy to do. There is a dev module that is more like a proof of concept https://www.drupal.org/project/css_delivery and then there is an article that talks about how to use grunt to generate the critical css http://fourkitchens.com/blog/article/use-grunt-and-advagg-inline-critica...

pdesai’s picture

Thanks! I was able to achieve 100% in Mobile using CSS Delivery module. However, for the Desktop side it still giving me the "Optimize CSS Delivery" for the bundled advagg CSS file and now it is throwing a new warning about "Prioritize visible content" - almost there!

mikeytown2’s picture

Status: Active » Fixed

Going to mark this issue as fixed. Please change it back and clarify why if I am mistaken.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.