{"id":991,"date":"2024-02-21T13:57:41","date_gmt":"2024-02-21T19:57:41","guid":{"rendered":"https:\/\/frontendmasters.com\/blog\/?p=991"},"modified":"2024-02-21T13:57:41","modified_gmt":"2024-02-21T19:57:41","slug":"real-world-usage-of-content-visibility","status":"publish","type":"post","link":"https:\/\/frontendmasters.com\/blog\/real-world-usage-of-content-visibility\/","title":{"rendered":"Real-World Usage of content-visibility"},"content":{"rendered":"\n<p><a href=\"https:\/\/adactio.com\/journal\/20899\">Jeremey Keith uses<\/a> the little-used CSS property <code><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/content-visibility\">content-visibility<\/a><\/code> to improve the performance on a fairly heavy page. <\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>It works a treat. I did a before-and-after check with&nbsp;<a href=\"https:\/\/pagespeed.web.dev\/\">pagespeed insights<\/a>&nbsp;on&nbsp;<a href=\"https:\/\/thesession.org\/tunes\/108\">the page for Out On The Ocean<\/a>. The \u201cstyle and layout\u201d part of the main thread work went down considerably. Total blocking time went from more than 600 milliseconds to less than 400 milliseconds.<\/p>\n\n\n\n<p>Not a bad result for a little bit of CSS!<\/p>\n<\/blockquote>\n\n\n\n<p>That&#8217;s what I&#8217;d like to see in more <a href=\"https:\/\/frontendmasters.com\/blog\/guest-writing-for-boost\/\">guest writing<\/a> around here: explanations of real-world implementations to make websites better. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Jeremey Keith uses the little-used CSS property content-visibility to improve the performance on a fairly heavy page. It works a treat. I did a before-and-after check with&nbsp;pagespeed insights&nbsp;on&nbsp;the page for Out On The Ocean. The \u201cstyle and layout\u201d part of the main thread work went down considerably. Total blocking time went from more than 600 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":992,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"sig_custom_text":"","sig_image_type":"featured-image","sig_custom_image":0,"sig_is_disabled":false,"inline_featured_image":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[29],"tags":[114,7,70],"class_list":["post-991","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-the-beat","tag-content-visibility","tag-css","tag-performance"],"acf":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/frontendmasters.com\/blog\/wp-content\/uploads\/2024\/02\/content-vis-thumb.jpg?fit=1000%2C500&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/991","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/comments?post=991"}],"version-history":[{"count":1,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/991\/revisions"}],"predecessor-version":[{"id":993,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/991\/revisions\/993"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/media\/992"}],"wp:attachment":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/media?parent=991"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/categories?post=991"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/tags?post=991"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}