Closed Bug 790277 Opened 12 years ago Closed 3 years ago

Speculatively run the awesome screen top sites query

Categories

(Firefox for Android Graveyard :: Awesomescreen, defect)

ARM
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: gcp, Unassigned)

Details

Whenever the user clicks the awesomescreen to enter or search anything, he's going to run and see the top sites query.

We should speculatively run this query as soon as we're idle and keep the result handy, so the entries pop up instantaneously.

This is related to bug 785945, but cheating to get the default case as fast as possible.
We used to do something similar in XUL fennec. We ran the query and cached the results locally. I can't remember off-hand if we cached the entire resultset or just a limited number.
mbrubeck made the remark that we have to be careful here not to regress page load times or (if we'd do it in the background) interactive performance of the foreground app, if we speculatively load at the wrong moment.

What about just always remembering the last result, displaying that and only then firing the new query? In most cases the result won't change for top sites.

The problem then might be that either we change the result under the users finger, or that "top sites" updates always lag by one awesomebar click. The latter might be very acceptable.
We also need to remember to clear the cache when the user clears history.
I implemented awesomebar query caching in bug 721104 but we decided to move on with the idea because of the risk of caching cursors in memory. Maybe we should revisit the idea but cache the results in some other way?
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: 3 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.