Skip to content

Fix issue where browsertime config was required to be applied manually #35

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

Merged
merged 1 commit into from
Apr 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,18 @@ export default class JavascriptPlugin extends SitespeedioPlugin {
async processMessage(message, queue) {
// const filterRegistry = this.filterRegistry;
switch (message.type) {
case 'browsertime.setup': {
// check https://github.com/sitespeedio/dashboard.sitespeed.io/blob/main/config/emulatedMobile.json for inspiration
queue.postMessage(this.make('browsertime.config', {
"chrome": {
"includeResponseBodies": "all",
},
"firefox": {
"includeResponseBodies": "all"
}
}));
break;
}
case 'sitespeedio.setup': {
// Let other plugins know that our plugin is alive
queue.postMessage(this.make(pluginname + '.setup', {
Expand Down