- Notifications
You must be signed in to change notification settings - Fork515
Support iframe viewport tracking#465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Support iframe viewport tracking#465
Uh oh!
There was an error while loading.Please reload this page.
Conversation
samouri commentedNov 13, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
open question: do we want to do feature detection for iframe viewport tracking and replace native with the polyfill if support is missing? I'm leaning towards no and allowing consumers to detect it themselves. If they prefer the polyfill they can run delete InOb from window before running the polyfill. |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
polyfill/intersection-observer.js Outdated
| width:html.clientWidth||body.clientWidth, | ||
| bottom:html.clientHeight||body.clientHeight, | ||
| height:html.clientHeight||body.clientHeight | ||
| height:html.clientHeight||body.clientHeight, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Can't do this in IE :( No trailing commas. You might have to disable the prettier.
Uh oh!
There was an error while loading.Please reload this page.
I think this is really close now. |
samouri commentedNov 23, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Darn. I believe I found a webkit bug. Essentially, Chrome and FF ensure that rootBounds when |
Uh oh!
There was an error while loading.Please reload this page.
samouri commentedDec 4, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Current status:
@dvoytenko: PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Looks very good!
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Can we link the crbug issue here as well? |
Uh oh!
There was an error while loading.Please reload this page.
summary
Implements iframe viewport tracking for the polyfill, as described in#372 (comment).
The following tasks have been completed:
Implementation already completed:
cc@dvoytenko