30+ IntersectionObserver's
Having over 30 IntersectionObserver's on one of my pages does not slow the page down.
I show a carousel of images next to each section when the section is visible.
Before I added observers, all the carousels were running all the time. All these animations was slowing the page downa a little.
It was simpler for me to code each observer to observe just one target element.
There are more tips at: bbingo.xyz/t
Comments
Post a Comment