9504 shaares
222 private links
222 private links
😍
A layout shift is what happens when an update in a web page causes something to move significantly.
- Using absolute/relative position but is is tricky.
- grid solution: placing the content in a cell of a grid, and use a visibility: hidden for every view. The biggest one will be wrapped or calculated, which prevent the layout shift !