w3c / IntersectionObserver

Intersection Observer
https://www.w3.org/TR/intersection-observer/
Other
3.62k stars 522 forks source link

Intersection Observer Api new feature request #489

Closed cnsndnz closed 2 years ago

cnsndnz commented 3 years ago

Hello,

This is a feature request for intersection observer api and this feature can be provided as optional via options parameter if it is possible. It is important that the measuring the correct 'viewability' of an ad in online advertisement business. If the intersection observer api can takes into account the browser position and status it will be better for use of advertising purposes. For example Intersection Observer Api can trigger visibility change events for the target element;

Thanks

miketaylr commented 2 years ago

@cnsndnz could clarify what the feature request is here? Are you asking for IntersectionObserver to provide info outside of the browser window (i.e. window state relative to the screen)? Or something else?

cnsndnz commented 2 years ago

@cnsndnz could clarify what the feature request is here? Are you asking for IntersectionObserver to provide info outside of the browser window (i.e. window state relative to the screen)? Or something else?

Exactly. Improving the intersection observer due to the window-page state and browser position would be very beneficial for real life use cases.

miketaylr commented 2 years ago

Thanks - that sounds exactly like what https://github.com/w3c/IntersectionObserver/issues/471 is proposing as well. Let's close this one as a dupe of the earlier one.