davidhu2000 / react-spinners

A collection of loading spinner components for react
https://www.davidhu.io/react-spinners
MIT License
3.12k stars 269 forks source link

fix CLS by stubbing the initial page rendered #538

Closed davidhu2000 closed 2 years ago

davidhu2000 commented 2 years ago

What changes are introduced?

created some stub divs so the page doesn't shift much. This helps with core web vitals and make google happy

Any screenshots?

Screen Shot 2022-09-05 at 10 37 00 AM

this is what the page looks like without javascript. compare that to the live site below

Screen Shot 2022-09-05 at 10 38 03 AM

the big shift is pushing down the footer on initial render.