Skip to content

Performance test is finished in the middle of page load (waiting for an XHR) #11639

@benshabatnoam

Description

@benshabatnoam

Hello there,

I'm running an Angular version performance test with lighthouse/page speed insights, and some of these tests are finishing prematurely (in the middle of the page loading), in a phase where the site is waiting for the main page content to arrive from an http request.

What is the current behavior?

Running the LH over my (Angular) website, sometimes (most of the times) finishing the test prematurely.
From performance tab I can see that there are 3 phases of the page load which are:

  1. Angular bootstrap
  2. My component (page component) initialize.
    In this init phase I'm sending a request to the backend to get the page data.
    This is where LH finishing the test at, while the site is waiting for this api call to response.
  3. Render the page content accordingly to the page data that we got from the request.

What is the expected behavior?

I would expect that LH will wait for my request to finish before it determent that the page load was done.

Environment Information

  • DevTools
  • Lighthouse version: 6.2.0
  • Chrome version: 86.0.4240.183 (Official Build) (64-bit) (cohort: Stable)
  • Node.js version: 14.3.0
  • Operating System: Windows 10

Thanks a lot for LH tool, it is awesome!
I'll appreciate your help on this one,
Noam

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions