{"id":1439,"date":"2019-03-16T11:29:00","date_gmt":"2019-03-16T08:29:00","guid":{"rendered":"https:\/\/iamakulov.com\/notes\/?p=1439"},"modified":"2020-04-14T11:50:24","modified_gmt":"2020-04-14T08:50:24","slug":"make-your-google-fonts-faster-with-font-display","status":"publish","type":"post","link":"https:\/\/iamakulov.com\/notes\/make-your-google-fonts-faster-with-font-display\/","title":{"rendered":"Make your Google Fonts faster \u2013 with font-display"},"content":{"rendered":"\n<p>Me &amp; <a href=\"http:\/\/twitter.com\/kurtextrem\">Jacob Gro\u00df<\/a> just launched a new tool: a script that makes your Google Fonts faster by adding <code><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/@font-face\/font-display\">font-display<\/a><\/code> support!<\/p>\n\n\n\n<p>\ud83d\udd25 Renders your text 1-2 seconds earlier in slow networks<br>\u2702\ufe0f Just 550 bytes minified and gzipped<br>\ud83d\udcbc Falls back to regular loading in older browsers<\/p>\n\n\n\n<p>Google Fonts are notorious for not supporting <code>font-display<\/code>:<\/p>\n\n\n\n<figure class=\"wp-block-embed-twitter wp-block-embed is-type-rich is-provider-twitter\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"twitter-tweet\" data-width=\"550\" data-dnt=\"true\"><p lang=\"en\" dir=\"ltr\">hypothesis:<br><br>If google fonts added `font-display: swap` to all of their font-face rules the first meaningful paint for the planet would improve by 25+%<br><br>\ud83e\udd14<\/p>&mdash; Sam Saccone (@samccone) <a href=\"https:\/\/twitter.com\/samccone\/status\/1106979581876035584?ref_src=twsrc%5Etfw\">March 16, 2019<\/a><\/blockquote><script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script>\n<\/div><\/figure>\n\n\n\n<p>Because of that, a lot of people have to either self-host Google Fonts (which is annoying) \u2013 or opt out of <code>font-display<\/code> completely (which hurts performance). Well, no more.<\/p>\n\n\n\n<p>Try the tool and read more about how it works:<\/p>\n\n\n\n<p>\ud83d\udc49 <a href=\"https:\/\/googlefonts.3perf.com\/\">googlefonts.3perf.com<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Me &amp; Jacob Gro\u00df just launched a new tool: a script that makes your Google Fonts faster by adding font-display support! \ud83d\udd25 Renders your text 1-2 seconds earlier in slow networks\u2702\ufe0f Just 550 bytes minified and gzipped\ud83d\udcbc Falls back to regular loading in older browsers Google Fonts are notorious for not supporting font-display: Because of &hellip; <a href=\"https:\/\/iamakulov.com\/notes\/make-your-google-fonts-faster-with-font-display\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Make your Google Fonts faster \u2013 with font-display&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1439","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Make your Google Fonts faster \u2013 with font-display - Ivan Akulov\u2019s blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/iamakulov.com\/notes\/make-your-google-fonts-faster-with-font-display\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Make your Google Fonts faster \u2013 with font-display - Ivan Akulov\u2019s blog\" \/>\n<meta property=\"og:description\" content=\"Me &amp; Jacob Gro\u00df just launched a new tool: a script that makes your Google Fonts faster by adding font-display support! \ud83d\udd25 Renders your text 1-2 seconds earlier in slow networks\u2702\ufe0f Just 550 bytes minified and gzipped\ud83d\udcbc Falls back to regular loading in older browsers Google Fonts are notorious for not supporting font-display: Because of &hellip; Continue reading &quot;Make your Google Fonts faster \u2013 with font-display&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/iamakulov.com\/notes\/make-your-google-fonts-faster-with-font-display\/\" \/>\n<meta property=\"og:site_name\" content=\"Ivan Akulov\u2019s blog\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/facebook.com\/iamakulov.page\" \/>\n<meta property=\"article:published_time\" content=\"2019-03-16T08:29:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-04-14T08:50:24+00:00\" \/>\n<meta name=\"author\" content=\"Ivan Akulov\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@iamakulov\" \/>\n<meta name=\"twitter:site\" content=\"@iamakulov\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ivan Akulov\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/iamakulov.com\/notes\/make-your-google-fonts-faster-with-font-display\/\",\"url\":\"https:\/\/iamakulov.com\/notes\/make-your-google-fonts-faster-with-font-display\/\",\"name\":\"Make your Google Fonts faster \u2013 with font-display - Ivan Akulov\u2019s blog\",\"isPartOf\":{\"@id\":\"https:\/\/iamakulov.com\/notes\/#website\"},\"datePublished\":\"2019-03-16T08:29:00+00:00\",\"dateModified\":\"2020-04-14T08:50:24+00:00\",\"author\":{\"@id\":\"https:\/\/iamakulov.com\/notes\/#\/schema\/person\/ebf7b61bf573e7be5fe438f50ebd9b81\"},\"breadcrumb\":{\"@id\":\"https:\/\/iamakulov.com\/notes\/make-your-google-fonts-faster-with-font-display\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/iamakulov.com\/notes\/make-your-google-fonts-faster-with-font-display\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/iamakulov.com\/notes\/make-your-google-fonts-faster-with-font-display\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/iamakulov.com\/notes\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Make your Google Fonts faster \u2013 with font-display\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/iamakulov.com\/notes\/#website\",\"url\":\"https:\/\/iamakulov.com\/notes\/\",\"name\":\"Ivan Akulov\u2019s blog\",\"description\":\"Ivan Akulov writes about his front-end experience, React, webpack, and performance optimizations.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/iamakulov.com\/notes\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/iamakulov.com\/notes\/#\/schema\/person\/ebf7b61bf573e7be5fe438f50ebd9b81\",\"name\":\"Ivan Akulov\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/iamakulov.com\/notes\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/aec4e9e944911b58f2c3d14b7f9e5412a217e5738359c3f52e824b4de2b2263c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/aec4e9e944911b58f2c3d14b7f9e5412a217e5738359c3f52e824b4de2b2263c?s=96&d=mm&r=g\",\"caption\":\"Ivan Akulov\"},\"description\":\"I'm a software engineer specializing in web performance, JavaScript, and React. I\u2019m also a Google Developer Expert. I work at Framer.\",\"sameAs\":[\"http:\/\/iamakulov.com\",\"https:\/\/x.com\/iamakulov\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Make your Google Fonts faster \u2013 with font-display - Ivan Akulov\u2019s blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/iamakulov.com\/notes\/make-your-google-fonts-faster-with-font-display\/","og_locale":"en_US","og_type":"article","og_title":"Make your Google Fonts faster \u2013 with font-display - Ivan Akulov\u2019s blog","og_description":"Me &amp; Jacob Gro\u00df just launched a new tool: a script that makes your Google Fonts faster by adding font-display support! \ud83d\udd25 Renders your text 1-2 seconds earlier in slow networks\u2702\ufe0f Just 550 bytes minified and gzipped\ud83d\udcbc Falls back to regular loading in older browsers Google Fonts are notorious for not supporting font-display: Because of &hellip; Continue reading \"Make your Google Fonts faster \u2013 with font-display\"","og_url":"https:\/\/iamakulov.com\/notes\/make-your-google-fonts-faster-with-font-display\/","og_site_name":"Ivan Akulov\u2019s blog","article_publisher":"http:\/\/facebook.com\/iamakulov.page","article_published_time":"2019-03-16T08:29:00+00:00","article_modified_time":"2020-04-14T08:50:24+00:00","author":"Ivan Akulov","twitter_card":"summary_large_image","twitter_creator":"@iamakulov","twitter_site":"@iamakulov","twitter_misc":{"Written by":"Ivan Akulov"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/iamakulov.com\/notes\/make-your-google-fonts-faster-with-font-display\/","url":"https:\/\/iamakulov.com\/notes\/make-your-google-fonts-faster-with-font-display\/","name":"Make your Google Fonts faster \u2013 with font-display - Ivan Akulov\u2019s blog","isPartOf":{"@id":"https:\/\/iamakulov.com\/notes\/#website"},"datePublished":"2019-03-16T08:29:00+00:00","dateModified":"2020-04-14T08:50:24+00:00","author":{"@id":"https:\/\/iamakulov.com\/notes\/#\/schema\/person\/ebf7b61bf573e7be5fe438f50ebd9b81"},"breadcrumb":{"@id":"https:\/\/iamakulov.com\/notes\/make-your-google-fonts-faster-with-font-display\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/iamakulov.com\/notes\/make-your-google-fonts-faster-with-font-display\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/iamakulov.com\/notes\/make-your-google-fonts-faster-with-font-display\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/iamakulov.com\/notes\/"},{"@type":"ListItem","position":2,"name":"Make your Google Fonts faster \u2013 with font-display"}]},{"@type":"WebSite","@id":"https:\/\/iamakulov.com\/notes\/#website","url":"https:\/\/iamakulov.com\/notes\/","name":"Ivan Akulov\u2019s blog","description":"Ivan Akulov writes about his front-end experience, React, webpack, and performance optimizations.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/iamakulov.com\/notes\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/iamakulov.com\/notes\/#\/schema\/person\/ebf7b61bf573e7be5fe438f50ebd9b81","name":"Ivan Akulov","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/iamakulov.com\/notes\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/aec4e9e944911b58f2c3d14b7f9e5412a217e5738359c3f52e824b4de2b2263c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/aec4e9e944911b58f2c3d14b7f9e5412a217e5738359c3f52e824b4de2b2263c?s=96&d=mm&r=g","caption":"Ivan Akulov"},"description":"I'm a software engineer specializing in web performance, JavaScript, and React. I\u2019m also a Google Developer Expert. I work at Framer.","sameAs":["http:\/\/iamakulov.com","https:\/\/x.com\/iamakulov"]}]}},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/iamakulov.com\/notes\/wp-json\/wp\/v2\/posts\/1439","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/iamakulov.com\/notes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/iamakulov.com\/notes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/iamakulov.com\/notes\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/iamakulov.com\/notes\/wp-json\/wp\/v2\/comments?post=1439"}],"version-history":[{"count":2,"href":"https:\/\/iamakulov.com\/notes\/wp-json\/wp\/v2\/posts\/1439\/revisions"}],"predecessor-version":[{"id":1443,"href":"https:\/\/iamakulov.com\/notes\/wp-json\/wp\/v2\/posts\/1439\/revisions\/1443"}],"wp:attachment":[{"href":"https:\/\/iamakulov.com\/notes\/wp-json\/wp\/v2\/media?parent=1439"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iamakulov.com\/notes\/wp-json\/wp\/v2\/categories?post=1439"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iamakulov.com\/notes\/wp-json\/wp\/v2\/tags?post=1439"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}