Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test single page application [navigation and load time] with lighthouse #5187

Closed
sakshij opened this issue May 11, 2018 · 3 comments
Closed

Comments

@sakshij
Copy link

sakshij commented May 11, 2018

Is there a way in which I can test my single page application and load time of different views of my single page app without having to run audit multiple times?
Say I load the home page, and then using lighthouse, trigger a click on one of the menu items, and load another page and audit things on each click.

@patrickhulce
Copy link
Collaborator

Hey @sakshij thanks for filing!

There's not really a way to run lighthouse over an entire flow. At the moment, it's very focused on the loading use case, so you'll have to run LH for each different view/URL. If you're venturing off into custom audit territory though there's nothing stopping you from extending an afterPass of a gatherer to do interaction with the page and measure whatever you'd like.

If you haven't already checked out our recipes they may help you there.

@grzegorz-ogrodowski
Copy link

@patrickhulce Is this topic still open? I would like to test SPA web page with Lighthouse, but I cannot find any solution.

@patrickhulce
Copy link
Collaborator

This is being actively worked on and should be possible in Lighthouse 9, see #11313 for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants