Open Bug 1943629 Opened 1 year ago Updated 9 months ago

UAWidget for video element is flushing style and whatnot (with 5000 dynamically-appended video elements generating tens of seconds of jank)

Categories

(Core :: Layout, defect)

defect

Tracking

()

People

(Reporter: mayankleoboy1, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Attached file Video-elements.HTML

Open any of the attached testcases
Enter 5000 in the input
Click on generate

Video
nightly: https://share.firefox.dev/4hubYgE (21s+ 11s)
Chrome: https://share.firefox.dev/4aunyps (all video element visible after 1.2 seconds!)

Audio
Nightly: https://share.firefox.dev/4jw6pjj
Chrome: https://share.firefox.dev/3CbMkOL

By whatever magic, 5000 video elements are visible in Chrome in 1.2 seconds. We take 21s for the elements to appear.
Olli suggested i file a bug separate from bug 1943230

Attached file Audio Elements.HTML

Full disclaimer: The testcases were generated by ChatGPT

Type: enhancement → defect
Severity: -- → S3
Summary: UAWidget for video element is flushing style and whatnot → UAWidget for video element is flushing style and whatnot (with 5000 dynamically-appended video elements generating tens of seconds of jank)

Is there anything low-hanging stuff to fix here?

(In reply to Mayank Bansal from comment #0)

Video
nightly: https://share.firefox.dev/4hubYgE (21s+ 11s)

This scenario (thousands of videos with browser controls loading at once on the same page) is probably edge casey enough to make it not a priority.

But, here are some observations from the initial 21s jank:

Also, 747 samples seem to be from "startFade" calling "KeyframeEffect constructor" (and that represents probably 1.5s here, given that ~21s is ~10.3k samples). That might be interesting to look into as well.

[1] (not sure why 21s didn't get ~21000 samples in this profile the Profile Info tooltip shows Interval:1ms. But not a big deal, and it's probably something subtle/unimportant that I'm not aware of.)

Blocks: 1980560
See Also: 1943230
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: