-
Notifications
You must be signed in to change notification settings - Fork 28
"Out of view" cross-origin iframes disable requestAnimationFrame/rendering pipeline #8
Comments
We later expanded to throttle the whole rendering pipeline: intent to ship |
Updating title for this issue. When/if Edge implements this in the future, we are also likely to implement it by disabling the rendering pipeline. Also.. re-using part of @cpeterso's comment in #9 regarding the Firefox bug that encompasses this issue and #9. |
Shipping in Chrome 51. |
A couple questions for the Chrome team:
|
cc/ @skyostil |
|
Thanks! |
Edge intends to implement this. |
This is shipped to Insiders and slated for release in Edge 15. |
Woot - our first modern intervention where I can add all 4 "shipped" labels 😄. @skyostil @domenic @nolanlawson, is there any spec work let to do, or is this enough to fully specify the behavior here? Once we're happy that this is properly specified and has appropriate web-platform-test coverage, we can close this issue. |
Great! \o/ I'm not sure how detailed we want the spec to be here. The current wording leaves a lot up to the implementation -- and the ones I've tried are all a little different; off the top of my head:
Other than the 3D bug, all of these are still in line with the spec. Maybe that's fine, but it will make writing a web-platform-test pretty difficult. |
Oh great, my comments were going to be along the lines of "is everyone actually compatible? If so maybe we should tighten the spec." But @skyostil did all the research to show that nobody is really compatible. If we want, we could try to converge everyone on the same behavior, and then tighten the spec accordingly. But if we think the current landscape is fine, then the spec is fine too, IMO. It's one of those predictability vs. user agent freedom tradeoffs, I guess. |
I've also noticed with FF that it stops throttling when the iframe gets close to the viewport -- not when it's actually in the iframe. This only happens after the user has scrolled. If you refresh the page and the iframe is 1px outside the viewport it works as expected. |
This is currently in the HTML Standard. It first made it in as whatwg/html#665, with the verbiage
In whatwg/html#3923, we split up the reasons for skipping rendering, in order to better specify their impact on the Paint Timing API. The current text which specifies this change is
(emphasis mine) As such, I'll close out this issue, as part of our larger project to archive this repository (see #72). Please feel free to have discuss anything related on the HTML Standard repository, at whatwg/html! |
Firefox and Safari implement this. Chrome has an intent to implement.
The text was updated successfully, but these errors were encountered: