Puru Vijay 6/5/2020

Performantly loading Google Fonts based on Data Saver

Read Original

This technical article discusses the performance impact of web fonts and provides a solution for loading Google Fonts efficiently. It explains how to use the `prefetch` resource hint to load fonts asynchronously, with a fallback to load them as stylesheets only after they are cached. Crucially, the method respects users with Data Saver enabled by preventing the font request, improving performance and saving data for users on slow or expensive connections.

Performantly loading Google Fonts based on Data Saver

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week