Skip to content
On this page

Intersection Observer

Title
Intersection Observer
Category
Web API
Tags
Aliases
Intersection Observer
Related
Created
2 years ago
Updated
last year
  • 기본적으로 브라우저 뷰포트(Viewport)와 설정한 요소의 교차점을 관찰하며, 요소가 뷰포트에 포함되는지, 포함되지 않는지 구별하는 기능을 제공한다.
  • 옵저버가 콜백을 비동기적으로 실행해주기 때문에, scroll 같은 이벤트 기반으로 요소를 관찰했을 때 발생할 수 있는 성능적인 문제를 최적화할 때 사용할 수 있다.

References

Released under the MIT License.