keesspoelstra opened a new issue #1867: Proposal: Insert font-display:swap for Google Fonts CSS inlining URL: https://github.com/apache/incubator-pagespeed-mod/issues/1867 Lighthouse and other tools complain about google fonts not supporting font-display:swap. I've recently implemented a script which rewrites the inlined Font css, adding the font-display:swap to the style rules, if it is inlined. This gives immense improvement on webpagetest.org and Lighthouse. As we inline the CSS we also have the possibility to rewrite the css when it is stored in the cache. I'd imagine having a content callback on the cache item (next to the header callback) and replacing the value with the rewritten CSS. The font-display value should be configurable on the filter or even on the link tag to make the configuration granular. Warning: This will give an inconsistent user experience, first request will be with FOIT, next requests will be with FOUT, as we cannot rewrite external stylesheets Thoughts?
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services