Closed
Bug 886376
Opened 12 years ago
Closed 12 years ago
Reduce interval between swapping in a preloaded newtab page and preloading the next one
Categories
(Firefox :: Tabbed Browser, defect)
Firefox
Tabbed Browser
Tracking
()
RESOLVED
FIXED
Firefox 24
People
(Reporter: ttaubert, Assigned: ttaubert)
References
Details
Attachments
(1 file)
1.35 KB,
patch
|
avih
:
review+
|
Details | Diff | Splinter Review |
Bug 875509 introduced an interval that makes us wait before starting to preload the next newtab page in the background after swapping in a preloaded one. It's currently set to 3s and I think that's way too high.
The interval was introduced to not interfere with the tabopen animation so we should reduce it to something like 500ms as the tabopen animation itself takes about 250ms. If we leave it at 3s there's a good chance we start preloading the next newtab page exactly when a user just clicked a thumbnail.
Attachment #766749 -
Flags: review?(avihpit)
Comment 1•12 years ago
|
||
Comment on attachment 766749 [details] [diff] [review]
reduce interval between swapping in a preloaded tab and preloading the next one
Review of attachment 766749 [details] [diff] [review]:
-----------------------------------------------------------------
500ms sounds a bit tight - I've observed 350ms animation on slow systems, and it might even take a bit more.
The optimal approach would probably be to start preload some time (200ms?) after tab animation has finished. However, AFAIK there's no event to indicate scroll-end when the tabstrip has overflow (and the new tab doesn't animate but rather scrolls into view).
Since it probably isn't worth the extra code complexity, Tim and I decided that 600ms should be enough for the vast majority of cases (to start after all animations have finished), and quick enough for real-world cases where users manually open a new tab.
r=me after changing to 600ms.
Attachment #766749 -
Flags: review?(avihpit) → review+
Assignee | ||
Comment 2•12 years ago
|
||
Assignee | ||
Comment 3•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 24
You need to log in
before you can comment on or make changes to this bug.
Description
•