<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/two-lines-of-css-that-boosts-7x-rendering-performance--poc1ar1ee" -->

---
title: Two lines of CSS that boosts 7x rendering performance!
description: Website&#x27;s nowadays need to be optimal and performant, users on the web have very short attention span. Most common use cases for this is when you have huge...
canonical: https://daily.dev/posts/two-lines-of-css-that-boosts-7x-rendering-performance--poc1ar1ee
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Two lines of CSS that boosts 7x rendering performance! | daily.dev
og:description: Website&#x27;s nowadays need to be optimal and performant, users on the web have very short attention span. Most common use cases for this is when you have huge...
og:url: https://daily.dev/posts/two-lines-of-css-that-boosts-7x-rendering-performance--poc1ar1ee
og:image: https://api.daily.dev/og/posts/pOc1AR1EE.png
og:image:alt: Two lines of CSS that boosts 7x rendering performance!
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Two lines of CSS that boosts 7x rendering performance!

**[DEV](https://daily.dev/sources/devto)** · 2 min read · 131 upvotes · 7 comments

## Summary

Website's nowadays need to be optimal and performant, users on the web have very short attention span. Most common use cases for this is when you have huge list/grid of data that needs to render at the mount of the application. With progressing web development it will soon be supported in all browsers too.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://dev.to/mnathani/two-lines-of-css-that-boosts-7x-rendering-performance-4mjd>

## Community discussion

Top comments from developers on daily.dev.

**@raulmarindev** · 1 upvotes

> This is not supported by Firefox and Safari. https://developer.mozilla.org/en-US/docs/Web/CSS/content-visibility https://developer.mozilla.org/en-US/docs/Web/CSS/contain-intrinsic-size

**@saqibjamil** · 0 upvotes

> Helpful

**@dantew** · 0 upvotes

> This is something that i have to try.

**@crismarket75** · 0 upvotes

> Just going to apply on my last creation to see what will happen on !

**@qorbani** · 0 upvotes

> Very promising 🤔 I’ll definitely try it 😁

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 1 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

Tags: [#css](https://daily.dev/tags/css)

[View this post on daily.dev](https://daily.dev/posts/two-lines-of-css-that-boosts-7x-rendering-performance--poc1ar1ee)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Two lines of CSS that boosts 7x rendering performance!","url":"https://daily.dev/posts/two-lines-of-css-that-boosts-7x-rendering-performance--poc1ar1ee","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/two-lines-of-css-that-boosts-7x-rendering-performance--poc1ar1ee"},"datePublished":"2022-05-30T00:19:43.791Z","dateModified":"2022-05-30T00:19:43.791Z","description":"Website's nowadays need to be optimal and performant, users on the web have very short attention span. Most common use cases for this is when you have huge...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/70dca83f31b5e37a0f93e3d9ced78a32","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/70dca83f31b5e37a0f93e3d9ced78a32","isAccessibleForFree":true,"articleSection":"DEV","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"DEV","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/devto","url":"https://daily.dev/sources/devto"},"commentCount":7,"discussionUrl":"https://daily.dev/posts/two-lines-of-css-that-boosts-7x-rendering-performance--poc1ar1ee","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":131},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":7}],"keywords":"css","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"DEV","item":"https://daily.dev/sources/devto"},{"@type":"ListItem","position":3,"name":"Two lines of CSS that boosts 7x rendering performance!"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/two-lines-of-css-that-boosts-7x-rendering-performance--poc1ar1ee","comment":[{"@type":"Comment","text":"This is not supported by Firefox and Safari. https://developer.mozilla.org/en-US/docs/Web/CSS/content-visibility https://developer.mozilla.org/en-US/docs/Web/CSS/contain-intrinsic-size","datePublished":"2022-06-01T21:32:45.557Z","url":"https://daily.dev/posts/pOc1AR1EE#c-nX5gyZ2ro","author":{"@type":"Person","name":"Raúl Marín","url":"https://daily.dev/raulmarindev","image":"https://media.daily.dev/image/upload/s--LOBtNjbr--/f_auto,q_auto/v1704035607/avatars/avatar_24f3bf992b6e46c188b91e9cf4b7cd01"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Helpful","datePublished":"2022-06-01T09:45:31.779Z","url":"https://daily.dev/posts/pOc1AR1EE#c-GoXm9-ldd","author":{"@type":"Person","name":"Saqib Jamil","url":"https://daily.dev/saqibjamil","image":"https://lh3.googleusercontent.com/a-/AOh14GhOlZIN1Cw9V_jQidKMzOs2Auf4O7vHwYBEGzvuQw=s100"}},{"@type":"Comment","text":"This is something that i have to try.","datePublished":"2022-05-30T13:37:07.818Z","url":"https://daily.dev/posts/pOc1AR1EE#c-5PuNGsdSo","author":{"@type":"Person","name":"Daniel T.","url":"https://daily.dev/dantew","image":"https://avatars.githubusercontent.com/u/25774938?v=4"}},{"@type":"Comment","text":"Just going to apply on my last creation to see what will happen on !","datePublished":"2022-05-30T14:03:33.860Z","url":"https://daily.dev/posts/pOc1AR1EE#c-RU6ncZdgF","author":{"@type":"Person","name":"Cris","url":"https://daily.dev/crismarket75","image":"https://media.daily.dev/image/upload/f_auto/v1650785995/avatars/EO6vvorN5yaqp8726MDgI"}},{"@type":"Comment","text":"Very promising 🤔 I’ll definitely try it 😁","datePublished":"2022-06-02T05:23:32.299Z","url":"https://daily.dev/posts/pOc1AR1EE#c-lIGuVy6yu","author":{"@type":"Person","name":"Reza Qorbani","url":"https://daily.dev/qorbani","image":"https://lh3.googleusercontent.com/a-/AOh14GicRsBv1R2bow9xeULTbHUxF6JhOeX44QfZdHnSwA=s100"}}]}
```

