-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate "owners" system #28042
Comments
What happens for cases where extensions need ownership that's not based on viewport intersection? |
Hm, can you share details of these? /cc @ampproject/wg-runtime |
I think we might (or, perhaps, should) have both: (a) Elements that are on the screen but we want to artificially delay their layout (e.g. to mitigate race conditions between components) It's good for us to have semantic control over this rather than having to trick the runtime into loading things by figuring out the "right" coordinates for something, even when those coordinates don't actually make sense for display. /cc @ampproject/wg-stories |
I think a configuration API to tweak the eagerness/laziness of resource loading could make sense. Please share any concrete use cases you have in mind. |
Most of our use cases would be fixed by the new intersection observer methods (nested scrollboxes). This falls into the same category that Jon described:
|
I actually think pause/resume is unaffected by owners (there's just an extra API for it in owners-interface.js), so we should be ok. First-class support for "pausing videos beyond viewport distance X" would be possible with IntersectionObserver and seems better than status quo. :) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
Follow-up to #25428.
Once resource scheduling with IntersectionObserver is stable, we should be able to simplify/remove
owners-interface.js
/owners-impl.js
, and usages in extension code.Should have a minor performance benefit. Curious how much of a binary size code reduction we'd get from ripping it out.
Also, there are probably other codepaths that can eventually be removed as well, e.g.
hidden-observer-impl.js
.The text was updated successfully, but these errors were encountered: