-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Enable device emulation, network throttling, and disable disk cache. #90
Conversation
} | ||
}; | ||
|
||
const DEVICE_EMULATION_USERAGENT = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there going to be a good way to keep this in sync with shipping Chrome?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hope so, though devtools project hasnt found a good way, yet. :)
For us, we could do something along the lines of pinging the omahaproxy API every week
review? |
you'll have to fix your merge conflicts |
fixed |
emulation.enableNexus5X(this); | ||
emulation.enableNetworkThrottling(this); | ||
emulation.disableCache(this); | ||
this.pendingCommandsComplete().then(_ => resolve()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
This follows the specs from #33.
Device
Network
This PR depends on #88, so here's a cleaner diff between the two:
paulirish/lighthouse@paulirish:cri-encapsulate...emulation
Also now that all this works, we can load m.flipkart successfully, so I've switched the default to that. Results are already interesting. :)