Skip to content

Service worker preload support - #540

Open
camillobruni wants to merge 65 commits into
WebKit:mainfrom
camillobruni:2026-06-10_worker_preload
Open

Service worker preload support#540
camillobruni wants to merge 65 commits into
WebKit:mainfrom
camillobruni:2026-06-10_worker_preload

Conversation

@camillobruni

Copy link
Copy Markdown
Contributor

No description provided.

@camillobruni
camillobruni marked this pull request as draft June 10, 2026 15:42
@netlify

netlify Bot commented Jun 10, 2026

Copy link
Copy Markdown

Deploy Preview for webkit-speedometer-preview ready!

Name Link
🔨 Latest commit 6a6fe03
🔍 Latest deploy log https://app.netlify.com/projects/webkit-speedometer-preview/deploys/6a2985d153150400088ffa05
😎 Deploy Preview https://deploy-preview-540--webkit-speedometer-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jun 10, 2026

Copy link
Copy Markdown

Deploy Preview for webkit-speedometer-preview ready!

Name Link
🔨 Latest commit 56c8d78
🔍 Latest deploy log https://app.netlify.com/projects/webkit-speedometer-preview/deploys/6a8c50cc1eecab0008838ab8
😎 Deploy Preview https://deploy-preview-540--webkit-speedometer-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

# Conflicts:
#	experimental/javascript-wc-indexeddb/dist/src/speedometer-utils/test-invoker.mjs
#	experimental/javascript-wc-indexeddb/dist/src/speedometer-utils/test-runner.mjs
#	resources/suite-runner.mjs
#	suites-experimental/javascript-wc-indexeddb/dist/resources.txt
#	suites-experimental/javascript-wc-indexeddb/dist/src/speedometer-utils/step-runner.mjs
#	suites-experimental/javascript-wc-indexeddb/dist/src/speedometer-utils/step-scheduler.mjs
#	suites-experimental/javascript-wc-indexeddb/dist/src/speedometer-utils/test-invoker.mjs
#	suites-experimental/javascript-wc-indexeddb/dist/src/speedometer-utils/test-runner.mjs
#	suites-experimental/responsive-design/dist/resources.txt
#	suites-experimental/suites.mjs
#	suites-experimental/todomvc-dart-jaspr/dist/out-dart2js-O4/resources.txt
#	suites-experimental/todomvc-dart-jaspr/dist/out-dart2wasm-O2/resources.txt
#	suites-experimental/todomvc-localstorage/dist/base.css
#	suites-experimental/todomvc-localstorage/dist/index.css
#	suites-experimental/todomvc-localstorage/dist/resources.txt
#	suites-experimental/todomvc-localstorage/src/resources.txt
#	suites/charts/dist/resources.txt
#	suites/default-suites.mjs
#	suites/editors/dist/resources.txt
#	suites/newssite/news-next/dist/resources.txt
#	suites/newssite/news-next/public/resources.txt
#	suites/react-stockcharts/build/resources.txt
#	suites/todomvc/architecture-examples/angular-complex/dist/resources.txt
#	suites/todomvc/architecture-examples/angular/dist/resources.txt
#	suites/todomvc/architecture-examples/backbone-complex/dist/resources.txt
#	suites/todomvc/architecture-examples/backbone/dist/resources.txt
#	suites/todomvc/architecture-examples/jquery-complex/dist/resources.txt
#	suites/todomvc/architecture-examples/jquery/dist/resources.txt
#	suites/todomvc/architecture-examples/lit-complex/dist/resources.txt
#	suites/todomvc/architecture-examples/lit/dist/resources.txt
#	suites/todomvc/architecture-examples/preact-complex/dist/resources.txt
#	suites/todomvc/architecture-examples/preact/dist/resources.txt
#	suites/todomvc/architecture-examples/react-complex/dist/resources.txt
#	suites/todomvc/architecture-examples/react-redux-complex/dist/resources.txt
#	suites/todomvc/architecture-examples/react-redux/dist/resources.txt
#	suites/todomvc/architecture-examples/react/dist/resources.txt
#	suites/todomvc/architecture-examples/svelte-complex/dist/resources.txt
#	suites/todomvc/architecture-examples/svelte/dist/resources.txt
#	suites/todomvc/architecture-examples/vue-complex/dist/resources.txt
#	suites/todomvc/architecture-examples/vue/dist/resources.txt
#	suites/todomvc/big-dom-generator/dist/resources.txt
#	suites/todomvc/todomvc-css/dist/resources.txt
#	suites/todomvc/vanilla-examples/javascript-es5-complex/dist/resources.txt
#	suites/todomvc/vanilla-examples/javascript-es6-webpack-complex/dist/resources.txt
#	suites/todomvc/vanilla-examples/javascript-es6-webpack/dist/resources.txt
#	suites/todomvc/vanilla-examples/javascript-web-components-complex/dist/resources.txt
#	suites/todomvc/vanilla-examples/javascript-web-components/dist/resources.txt
#	tests/run-end2end.mjs
@camillobruni camillobruni changed the title WIP: service worker preload support Service worker preload support Aug 11, 2026
@camillobruni
camillobruni marked this pull request as ready for review August 18, 2026 09:54
This fixes a race condition where SpeedometerReady would fire while _preloadResources was still in flight asynchronously. That caused the test runner to simultaneously invoke benchmarkClient.start(), leading to concurrent preloads that randomly caused the PRELOAD_SUITES message to resolve a STOP_PRELOADING promise incorrectly on slower browsers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant