DEV Community

varunprashar5
varunprashar5

Posted on

2

Boost Web Performance: content-visibility (chrome 85)

To boost web app performance, A new css property is introduced with the launch of chrome 85.

  • content-visibility allows the element's rendering work, including layout and painting, until it is needed.
  • If heavy part of your content is not visible to the screen, using this property will make the initial load much faster.
  • You have control to make it automated or via a script to handle it.
  • The 'auto' keyword allows for the user-agent to manage content visibility based on proximity to the viewport.
  • Whereas 'hidden' keyword allows full script control of content visibility.

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Explore a trove of insights in this engaging article, celebrated within our welcoming DEV Community. Developers from every background are invited to join and enhance our shared wisdom.

A genuine "thank you" can truly uplift someone’s day. Feel free to express your gratitude in the comments below!

On DEV, our collective exchange of knowledge lightens the road ahead and strengthens our community bonds. Found something valuable here? A small thank you to the author can make a big difference.

Okay