This is a submission for DEV Challenge v24.03.20, One Byte Explainer: Intersection Observer API.
Explainer
Intersection Observer API tr...
For further actions, you may consider blocking this person and/or reporting abuse
Such a great tip, so much more efficient than checking the viewpoint every time the scroll even fires!
I was looking forward to learning it, but now I have, and thank you very much for the easy explanation.
improved performance and with cleaner code.
no event handlers firering everywhere and each time you scroll up or down.