Re: [w3c/ServiceWorker] consider allow late importScripts/import for local URLs (#1595)

Thanks Thomas!

> @jakearchibald I am facing an issue with importing a local Firebase CDN file in the service worker (background.js) file. I can't seem to load other scripts or files locally from one file to another. Is there any way to achieve this?

Without seeing your project running and the errors you are getting, it's hard to say anything with certainty. That said, I don't think the problems here are related to this issue.

As an example, there is a service worker specific version of the firebase messaging SDK ([link](https://www.gstatic.com/firebasejs/10.13.1/firebase-messaging-sw.js)). We don't have any Chrome guidance on making this work currently but there are some external blog posts you might find helpful, like [this one](https://mikecann.co.uk/posts/firebase-cloud-messaging-and-chrome-extension-manifest-v3).

If you have any other questions or follow-up, please use the [chromium-extensions](https://groups.google.com/a/chromium.org/g/chromium-extensions) mailing list and that way we can avoid adding too much noise on the spec discussion :)

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1595#issuecomment-2345908063
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/ServiceWorker/issues/1595/2345908063@github.com>

Received on Thursday, 12 September 2024 10:41:06 UTC