Comments (5)
I like it. How do we guarantee ordering? (You could put at rest before initial), and how do we order within the set of gathers scheduled for a given lifecycle point? Last question: who instructs the driver to move to the next stage?
from lighthouse.
I am pretty convinced that some gather operations will be destructive (cause the browser to be in a state where no other gathers can run)
For now, allowing the gather to do whatever will continue to work, I think this is a deep deep rabbit hole if we start trying to optimize the gather phase. I am totally with you that the more times we revisit the page the more variance we will get (if we gather the same number twice) But I am not so convinced of the upside of trying to optimize the gather phase to reduce the number of reloads given the complexity cost of this task.
So long as each gather phase exits cleanly everything should be "OK"
For drool, i setup basic life-cycle hooks that you could put logic in for each memory test, that seemed to work out pretty OK for me.
https://github.com/samccone/drool/blob/master/docs/api.md#flow
from lighthouse.
Tried to capture a few usecase for timing in this doc: https://v.etherpad.org/p/MCiOMkGOcf
@deepanjanroy was thinking it may make more sense to have gathers extend a base class that has these lifecycle events defined.. e.g. setup, beforeLoaded, pageLoaded, teardown.
This is in line with how Telemetry does it, in fact. In key_silk_cases.py see __init__
, RunNavigateSteps
, RunPageInteractions
PerformPageInteractions
from lighthouse.
There's already a gather base class IIRC so we should be gtg there.
from lighthouse.
Yyyyyyyeah https://github.com/GoogleChrome/lighthouse/blob/master/gatherers/gather.js
from lighthouse.
Related Issues (20)
- Unexpected changes in main thread time reported around March 8th HOT 10
- Sequential network requests are simulated as parallel and the first rtt is ignored
- Lone surrogate character breaks PSI proto conversion HOT 4
- Was filing bug report when site crashed multiple before I could get the first report in HOT 2
- On certain audited pages, `totalBodyElements` are different from `MainDocumentContent` body nodes count HOT 1
- The Future of WordPress in the Age of AI Integration HOT 2
- Site security issues while making payment to Comcast. HOT 1
- SEO updates from recent search conversations
- Unexpected changes on main thread work from 11.6.0 to 11.7.1 HOT 3
- Viewport resizing to window size
- Lighthouse LCP Issue HOT 1
- LCP not recognized in many pages for this site. HOT 1
- Print stylesheet picked for Render-blocking resource HOT 1
- Incorrect user agent on pagespeed.web.dev HOT 1
- Protocol error (Target.getTargetInfo): Protocol error (Target.getTargetInfo): 'Target.getTargetInfo' wasn't found HOT 3
- Keep passing Core Web Vitals but failing LCP
- "Opportunities" no longer surfaced in report or in resulting output in Lighthouse 12 HOT 5
- CPU throttling is unstable
- Testing Page metrics for different HTTP versions HOT 1
- LH:ChromeLauncher Waiting for browser
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lighthouse.