Investigate if load event firing could be delayed in background tabs

NEW
Unassigned

Status

()

Core
DOM
6 years ago
5 years ago

People

(Reporter: smaug, Unassigned)

Tracking

Trunk
x86_64
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [Snappy:p2])

(Reporter)

Description

6 years ago
(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.

Updated

5 years ago
Whiteboard: [Snappy]

Updated

5 years ago
Whiteboard: [Snappy] → [Snappy:p2]
You need to log in before you can comment on or make changes to this bug.