Open Bug 764983 Opened 12 years ago Updated 2 years ago

Investigate if load event firing could be delayed in background tabs

Categories

(Core :: DOM: Core & HTML, defect, P5)

x86_64
Linux
defect

Tracking

()

People

(Reporter: smaug, Unassigned)

Details

(Whiteboard: [Snappy:p2])

(page) load event listeners do often something heavy. I wonder if it makes sense to
delay firing load event in background tabs so that it gets fired either after 10(?) seconds 
or if the tab has become and stayed active for, say, 1s.
Tab icon should still indicate that the page has been loaded. It is just that the
event listeners would run later and also the final page loading related layout flush.

(I wonder if we really have to flush layout in bg tabs before firing load event.)
We want to get rid of the flush-before-firing in general.  The only issue is that last time I did that I got test failures with things actually rendering incorrectly... need to figure out why.
Whiteboard: [Snappy]
Whiteboard: [Snappy] → [Snappy:p2]
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
Component: DOM → DOM: Core & HTML
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.