Skip to content

Don't delay the load event for lazy-loading media on source insertion - #12972

Open
zcorpan wants to merge 1 commit into
mainfrom
zcorpan/media-lazy-loading-source-insertion
Open

zcorpan wants to merge 1 commit into
mainfrom
zcorpan/media-lazy-loading-source-insertion

Conversation

@zcorpan

@zcorpan zcorpan commented Sep 21, 2026

Copy link
Copy Markdown
Member

When a source element is inserted while the resource selection algorithm is waiting for one, the delaying-the-load-event flag was set unconditionally, and the lazy branch of the resource fetch algorithm never cleared it.

Fixes #12971.

(See WHATWG Working Mode: Changes for more details.)

When a `source` element is inserted while the resource selection algorithm is waiting for one, the
delaying-the-load-event flag was set unconditionally, and the lazy branch of the resource fetch
algorithm never cleared it.

Fixes #12971.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Inserting a source element sets the delaying-the-load-event flag even for loading=lazy media

1 participant