fenix icon indicating copy to clipboard operation
fenix copied to clipboard

[Bug] Long delay between browsing to URL and page starting to display

Open hawkinsw opened this issue 6 years ago • 5 comments

This is a follow-up bug for additional work not covered in #7143

Steps to reproduce

  1. Click on the URL bar
  2. Enter cnn.com, e.g.,
  3. Click "->"

Expected behavior

  1. Click on the URL bar
  2. Enter cnn.com, e.g.,
  3. Click "->"
  4. Page begins to render

Actual behavior

  1. Click on the URL bar
  2. Enter cnn.com, e.g.,
  3. Click "->"
  4. Wait
  5. Page begins to render

Device information

  • Android device: Pixel 2
  • Fenix version: Nightly

┆Issue is synchronized with this Jira Task

hawkinsw avatar Jan 15 '20 07:01 hawkinsw

It appears that the remaining delay comes from

  1. Initializing a session: SessionManager.getOrCreateEngineSession takes ~130ms on a Pixel 2. For reference, that is ~4x as long as it takes to initialize Gecko
  2. (Depending on when this happens and it's effect on when the user sees the page start to render), there is (yet another) BrowserToolbarView.<init> that takes > 200ms.

Trace attached. 7707.trace.gz

hawkinsw avatar Jan 15 '20 08:01 hawkinsw

Triage: Eric will try to see if this is still a perceptible problem and prioritize accordingly.

mcomella avatar Feb 24 '20 20:02 mcomella

Confirmed this still reproduces on Fenix Nightly 200225 and Release 3.2.0. I'm not sure if there are other sites affected, but I tested 6 and CNN was the only site with an issue. In addition to Will's original STR entering the URL in the address bar, I can also reproduce when clicking on the link to cnn.com from search results. It does not appear to matter if the page load is cold or warm.

ecsmyth avatar Feb 25 '20 07:02 ecsmyth

Cold page load profile for cnn.com Also reproduces on https://www.saccounty.net (cold page load profile)

ecsmyth avatar Feb 25 '20 07:02 ecsmyth

Issue no longer reproduces in Fenix Nightly 200304

ecsmyth avatar Mar 04 '20 20:03 ecsmyth