amphtml
amphtml copied to clipboard
Provide a measurement when a callback is registered while the element is already being observed
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