An open API service indexing awesome lists of open source software.

https://github.com/nstseek/repaint-efficiency-example

A simple example demonstrating a common website layout with multiple layers to avoid unnecessary page repaintings.
https://github.com/nstseek/repaint-efficiency-example

chrome compositor css devtools html layers layout paint painting performance rendering repaint threads

Last synced: 3 months ago
JSON representation

A simple example demonstrating a common website layout with multiple layers to avoid unnecessary page repaintings.

Awesome Lists containing this project

README

        

## Repaint efficiency example

This project demonstrates a common webpage layout that has a fixed header and a fixed footer with a scrollable content in the middle.

It creates three layers avoid page repainting every time the user scrolls the page.

A simple demonstration on how to have a efficient webpage in exchange for a few extra layers, consuming more memory.

You can check the project right [here](https://repaint-efficiency-example.vercel.app/)

The project will present a live demo to you and teach you how to use Chrome DevTools to notice the different layers and repaints.