Open Bug 162123 Opened 22 years ago Updated 2 years ago

stop paint suppression when html finishes loading (don't wait 250ms for images)

Categories

(Core :: Layout, enhancement, P3)

x86
Windows XP
enhancement

Tracking

()

Future

People

(Reporter: jruderman, Unassigned)

Details

(Keywords: perf, testcase)

Attachments

(2 files)

Mozilla doesn't paint anything until 1.2 seconds after a page finishes loading,
or until the entire page (including images) finishes loading.  It should paint
immediately if the html finishes loading but the images are still loading,
because the images are likely to load slowly and unlikely to alter the layout of
the page.

Mozilla's current behavior makes it look slow:
<Travis> and IE displays the HTML then adds the images
<Travis> on mozilla it waits for the images before displaying it
I explained to Travis that Mozilla only waits 1.2 seconds, and then realized
that waiting 1.2 seconds for images doesn't make sense.
Keywords: perf
QA Contact: petersen → amar
Priority: -- → P2
Target Milestone: --- → Future
Is this a duplicate of bug 125260?
Keywords: testcase
>images are likely to load slowly and unlikely to alter the layout of
>the page.

this is a wrong assumption - think <img src="...">, ie. without a width/height
attribute. in that case, the size of the image is not known until it is loaded
That's why we need a small delay to catch those cases. I think that bug 180241
really helped here : the delay is now 250 msec. If we went to 0, we would have
the same ugly behaviour as Internet Exploder ('dancing page'). I agree that it's
also the fault of those pages (they should have specified the image-size anyway,
which helps the performance in IE), but it's still very common.

BTW: if we're sure that the layout is finished (all image sizes are known, etc
...), do we paint immediately ?
Thanks to IE's behavior, most images in web pages have height and width
specified.  I think that most "dancing page" effects come from complex layouts,
not images.
So... do we still want to try and do this now that the timeout is only 250ms?
Summary: stop paint suppression when html finishes loading (don't wait 1.2s for images) → stop paint suppression when html finishes loading (don't wait 250ms for images)
(In reply to Boris Zbarsky, comment #7)
> So... do we still want to try and do this now that the timeout is only 250ms?

Some claim that 250ms is too low and 500ms is the "sweet-spot". Perhaps with
this higher timout, fixing this bug may be worthwhile.,

Prog.
Assignee: kmcclusk → nobody
QA Contact: amar → layout
Moving to p3 because no activity for at least 1 year(s).
See https://github.com/mozilla/bug-handling/blob/master/policy/triage-bugzilla.md#how-do-you-triage for more information
Priority: P2 → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: