Closed Bug 766600 Opened 13 years ago Closed 5 years ago

Prioritize first page load over other startup operations

Categories

(Firefox for Android Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: wesj, Unassigned)

Details

On my crappy DroidX, BrowserApp.startup takes around 500ms. A lot of what is in there needs to be done at startup, but isn't crucial to using the browser. I think we could delay a lot of it till after first page load. I'll try to get some better numbers for each individual item in startup. Eventually, stechz's startup timeline might be interesting, but we can start with some simpler things.
Grr. Somehow numbers got slightly better between then and now, but I'm still seeing around 350ms time here. Most of that is in creating the Tab object. I'm need to look into what's slow there and see if we can create a simplified constructor in that case without breaking all the listeners that expect to get events in a certain order. First run is much worse because we force creating the Form History and passwords database. That can also be move to delayed startup.
(In reply to Wesley Johnston (:wesj) from comment #1) > Grr. Somehow numbers got slightly better between then and now, but I'm still > seeing around 350ms time here. Most of that is in creating the Tab object. Probably adding the <browser> object to the DOM > First run is much worse because we force creating the Form History and > passwords database. That can also be move to delayed startup. Yeah we should mimic what we did in XUL Fennec for the post-page-delay
We have completed our launch of our new Firefox on Android. The development of the new versions use GitHub for issue tracking. If the bug report still reproduces in a current version of [Firefox on Android nightly](https://play.google.com/store/apps/details?id=org.mozilla.fenix) an issue can be reported at the [Fenix GitHub project](https://github.com/mozilla-mobile/fenix/). If you want to discuss your report please use [Mozilla's chat](https://wiki.mozilla.org/Matrix#Connect_to_Matrix) server https://chat.mozilla.org and join the [#fenix](https://chat.mozilla.org/#/room/#fenix:mozilla.org) channel.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → INCOMPLETE
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.