amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

Provide a measurement when a callback is registered while the element is already being observed

Open j-e-shaw opened this issue 10 years ago • 0 comments

In the case where 2+ parties wish to observe an intersection, the first to register will get an initial measurement. If the latter parties attach a callback after the first message is received, they will not receive a measurement until there is a change.

I think a measurement should be provided to the 2nd+ party shortly after registering the callback even if there has been no change since the 1st party registered its callback.

Related on intersectionObserver: https://github.com/slightlyoff/IntersectionObserver/issues/73

j-e-shaw avatar Dec 10 '15 21:12 j-e-shaw