This is a simple project to test the impact of different actions on the Input to Next paint metric.
- non interactive elements have a good INP πββοΈ
- button without side effects has a good INP πββοΈ
- button with artificial main thread delay inside
requestIdleCallback
has a good INP πββοΈ - button with artificial main thread delay inside 2
requestAnimationFrame
has a good INP πββοΈ - fetching data has a good INP πββοΈ
- button with artificial main thread delay inside
requestAnimationFrame
has a bad INP π - button with artificial main thread delay inside
setTimeout
has a bad INP π - button with artificial main thread delay has a bad INP π
- :active does not improve a bad INP π
Full test suite