Repository navigation
Add intersection and resize waits to web detection - #3239
Draft
GuiltyDolphin wants to merge 2 commits into
Draft
GuiltyDolphin wants to merge 2 commits into
GuiltyDolphin wants to merge 2 commits into
Conversation
Contributor
[Beta] Generated file diffTime updated: Mon, 30 Nov 2026 12:59:31 GMT Android
File has changed AppleFile has changed Chrome-mv3File has changed FirefoxFile has changed IntegrationFile has changed WindowsFile has changed |
2 of 4 tasks
GuiltyDolphin
force-pushed
the
gd-c-web-detection-geometry-waits
branch
from
November 24, 2026 16:53
d23a114 to
1dad96b
Compare
GuiltyDolphin
force-pushed
the
gd-c-web-detection-geometry-waits
branch
2 times, most recently
from
November 25, 2026 13:28
e166fc6 to
bcd4096
Compare
GuiltyDolphin
force-pushed
the
gd-c-web-detection-geometry-waits
branch
from
November 25, 2026 16:36
bcd4096 to
3c879ce
Compare
GuiltyDolphin
force-pushed
the
gd-c-web-detection-geometry-waits
branch
from
November 25, 2026 17:46
3c879ce to
1ccc772
Compare
GuiltyDolphin
force-pushed
the
gd-c-web-detection-geometry-waits
branch
from
November 25, 2026 19:18
1ccc772 to
7e9b732
Compare
GuiltyDolphin
force-pushed
the
gd-c-web-detection-geometry-waits
branch
from
November 25, 2026 20:51
7e9b732 to
574a592
Compare
GuiltyDolphin
force-pushed
the
gd-c-web-detection-geometry-waits
branch
from
November 25, 2026 21:54
574a592 to
e9f7f35
Compare
GuiltyDolphin
force-pushed
the
gd-c-web-detection-geometry-waits
branch
from
November 25, 2026 22:30
e9f7f35 to
3c31718
Compare
GuiltyDolphin
force-pushed
the
gd-c-web-detection-geometry-waits
branch
from
November 30, 2026 10:47
3c31718 to
52dc95b
Compare
This lets a wait observe an element's place in the viewport or its size, with IntersectionObserver and ResizeObserver captured with the other recorder globals, so a detector reads geometry without laying out the page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This matches mutation and event waits: a target the observer can't observe fails the wait at its target straight away, and an engine without the observer still gives no item. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GuiltyDolphin
force-pushed
the
gd-c-web-detection-geometry-waits
branch
from
November 30, 2026 12:57
52dc95b to
1cf379d
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Asana Task/Github Issue: https://app.asana.com/1/137249556945/task/1220838335740488
Description
Builds on #3238.
Reading an element's place or size in a run (
visibility: "visible",getBoundingClientRect) lays out the page synchronously when it has changed. This adds twowaitbodies that get both from observers instead, which compute them in the engine's rendering update:{"wait": {"intersection": {...}, "target": ...}}observes the element's place in the viewport withIntersectionObserver. The root is always the viewport, sorootandrootMarginin the options are dropped. An item is theIntersectionObserverEntry, withtimeStampitstime{"wait": {"resize": {...}, "target": ...}}observes its size withResizeObserver, passing the options toobserve(). An item is theResizeObserverEntry, withtimeStampfrom when the callback rantarget, and like amutationwait each has an observer of its own while the wait is open.observe()queues an entry for the element as it is, so awaitwith nowheregives its place or size within a frame, and one whosewhererejects that keeps waiting for a change. Atargetthat isn't an element fails thewaitat itstargetstraight away, and an engine without the observer gives no item, so the wait resumes attimeoutMsIntersectionObserverandResizeObserver, with theirobserveanddisconnect, are captured with the other recorder globalsNeither observer delivers while the page isn't rendered, which detectors handle by observing the page hiding with
whenBusy: "interrupt".Testing Steps
where,timeStampfromtime, disconnecting), resize waits (options toobserve()), atargetthat isn't an element failing straight away, an engine without the observer resuming attimeoutMs, and parse errorsChecklist
Please tick all that apply:
🤖 Generated with Claude Code