CodeZettaInterview Hub

HTML · APIs · Mid-Level · Concept

Explain Intersection Observer at a high level for HTML apps.

Short Interview Answer

Async observation of element visibility — lazy load, infinite scroll, analytics.

Detailed Explanation

Avoid scroll listeners for visibility. Root margins tune prefetch. Disconnect when done.

Did you know this answer?