developer.chrome.com
persistent-serviceworker
Our great sponsors
developer.chrome.com | persistent-serviceworker | |
---|---|---|
16 | 8 | |
1,656 | 19 | |
- | - | |
9.7 | 2.8 | |
about 2 months ago | 4 months ago | |
HTML | JavaScript | |
GNU General Public License v3.0 or later | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
developer.chrome.com
-
What’s new in CSS and UI: I/O 2023 Edition
Keep up with all the latest landings in CSS and HTML right here on developer.chrome.com and check out the I/O videos for more web landings.
-
Maximizing Your Web Development Efficiency: A Deep Dive into Chrome DevTools' Elements Section
Hola developers and learners 👋👋!! We are going to start a new blog series on Chrome Developer Tools. As a web developer, you know that having the right tools can make all the difference when it comes to building high-quality, efficient websites. But fear not! Chrome DevTools Elements section is here to save the day, like a superhero swooping in to solve all your web development woes 🦹.
- Where do you learn about the new great things?
-
SpaceX's Falcon Heavy USSF-44 Booster landing! ☄️
developer.chrome.com https://developer.chrome.com › docs Lighthouse overview - Chrome Developers
-
Any good tutorial or course to learn chrome extensions dev
Read the documentation https://developer.chrome.com/docs/extensions/. Build an MV3 for each API. File issues https://github.com/GoogleChrome/developer.chrome.com when you find inaccurate content.
-
Declarative Code, Imperative Effects?
where that is not what is really going on, because Chrome and Chromium browsers do not support capturing system audio. At best the audio captured is the tab audio. Try to capture the system audio produced by window.speechSynthesis.speak() and see what happens, see https://github.com/GoogleChrome/developer.chrome.com/issues/3957 https://github.com/GoogleChrome/developer.chrome.com/pull/3947#issuecomment-1274250421
-
Eleventy vs Next.js
developer.chrome.com
-
Getting audio input from a computer's audio output
Keep in mind that getDisplayMedia() does not capture all audio output to speaker or headphones, e.g., does not capture window.speechSynthesis.speak() output, which is not output via the Tab audio, see https://github.com/GoogleChrome/developer.chrome.com/issues/3957.
-
Google postpones MV2 shutoff in Chrome stable to June 2023
Yep, they just updated when CWS stops accepting MV2 updates to January 2024: https://github.com/GoogleChrome/developer.chrome.com/pull/38...
-
Chrome Extension with Blazor WASM - The Migration
Visit any website on https://developer.chrome.com or https://docs.microsoft.com
persistent-serviceworker
-
How to keep a serviceworker (background.js) alive in a chrome extension
Here you go persistent-serviceworker.
-
[AskJS] Do specification authors and implementers listen to developers in the field?
The ServiceWorker becoming inactive in 5 minutes per MV3 is a debacle. Workarounds exist and the code to implement keeping the ServiceWorker persistent, e.g., to stream live radio station from the ServiceWorker to the client winds up not saving any resources - we have to keep something running to keep the service worker running. You would be hard-pressed to count how many issues in the wild have been filed in multiple source code repositories just on that lack of functionality - for years now, e.g., Need help to understand and use this #2.
-
[AskJS] What are the worst case scenarios for programmatically setting arbitrary Web pages (Origins) as Client or WindowClient of a ServiceWorker?
There are workarounds which involve using an iframe https://github.com/guest271314/persistent-serviceworker/tree/main/chromium_extension_web_accessible_resources_iframe_message_event or window.open() https://github.com/guest271314/sw-transfer-stream or and offscreen document https://github.com/guest271314/offscreen-webrtc with WebRTC - however that involves loading an entire HTML document, and each has its own deficienfies - with all of the Window features that we do not really need just to transfer data between the Web page I have control of and the ServiceWorker I have control of.
-
Transfer ArrayBuffer from ServiceWorker to Web page
One approach for your requirement is to append an iframe with src set to an HTML document listed in "web_accessible_resources" to an arbitrary document and use postMessage() from the Web page to the iframe, then from the iframe to the MV3 ServiceWorker, see https://github.com/guest271314/persistent-serviceworker/tree/main/chromium_extension_web_accessible_resources_iframe_message_event.
-
How to have background:persistent in V3?
See https://github.com/guest271314/persistent-serviceworker
-
Manifest 3 limitation with background.js
Yes, it is possible to keep an extension or non-extension ServiceWorker persistent, active indefinitely https://github.com/guest271314/persistent-serviceworker.
-
Confirming isolation of cross-domain iframe (chrome extension context)
If you host the HTML for and use
"web_accessible_resources"
in manifest.json the</code> can communicate directly with MV3 <code>ServiceWorker</code>. </p> <p>To keep MV3 <code>ServiceWorker</code> persistent see <a href="https://github.com/guest271314/persistent-serviceworker">https://github.com/guest271314/persistent-serviceworker</a>.</p> </div>
-
Manifest v3: how to mitigate the timeout of the service worker?
I utilize "web_accessible_resources" with an , where chrome.* API's are exposed, and does not become inactive.
Some workarounds to keep MV3
ServiceWorker
active Persistent ServiceWorker.
What are some alternatives?
uhtml - A micro HTML/SVG render
offscreen-webrtc - Offscreen document <=> WebRTC Data Channel <=> Web page
weather_app_PWA
playwright-dotnet - .NET version of the Playwright testing and automation library.
use-memo-one - useMemo and useCallback but with a stable cache
sw-transfer-stream - MV3 ServiceWorker => ReadableStream => Web page
blazor-wasm-chrome-extension - This provides sample codes for a Chrome Extension app built on Blazor WASM
ServiceWorkerFullVideoBuffer - A service worker that buffers a full video, so when the video tag ask for ranges, these can be satisfied. Play + pause = buffer the whole video.
web.dev - The frontend, backend, and content source code for web.dev
captureSystemAudio - Capture system audio ("What-U-Hear")
react-relay - Relay is a JavaScript framework for building data-driven React applications.
mediacapture-main - Media Capture and Streams specification (aka getUserMedia)