Closed Bug 194787 Opened 22 years ago Closed 15 years ago

lazily lay out/reflow pages with immediate onload redirects

Categories

(Core :: Layout, enhancement, P3)

enhancement

Tracking

()

RESOLVED WONTFIX
Future

People

(Reporter: myk, Unassigned)

Details

We should lazily lay out/reflow pages with immediate redirects in their onload handler and only lay out if the handler requests the position of an element. Doing this would improve performance in certain edge cases, particularly performance tests like i-Bench, and would make such tests between us and Safari (which does this) more directly comparable.
How do we determine whether an onload handler contains a redirect, much less an immediate one? (This is equivalent to the halting problem, no? We could just randomly guess, I suppose.)
Priority: -- → P3
I was under the impression that we already cancel paint when we detect an immediate redirect, but perhaps I was mistaken and we merely unconditionally defer paint until after the onload handler fires (thus having the effect of canceling paint for immediate redirects). jrgm knows more.
I looked at this a bit. It seems to be implicit, not explicit.
Target Milestone: --- → Future
Assignee: layout → nobody
QA Contact: ian → layout
See bug 572604 for a variant of this idea that doesn't require solving the halting problem.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.