DEV Community

Discussion on: What are the most underrated browser features and APIs?

Collapse
 
jankapunkt profile image
Jan Küster

MutationObserver: Detect changes in DOM elements, the right way.

IntersectionObserver: detect elements entering the viewport or are close to entering.

Both relieve you of writing code, that has a high chance of being imperformant or bloated.

Collapse
 
stephanie profile image
Stephanie Handsteiner

I'll add the ResizeObserver to that list.