Skip to content
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

Load workbox-window with dynamic import #354

Closed
3 tasks done
userquin opened this issue Aug 12, 2022 · 0 comments · Fixed by #367
Closed
3 tasks done

Load workbox-window with dynamic import #354

userquin opened this issue Aug 12, 2022 · 0 comments · Fixed by #367
Labels
enhancement New feature or request

Comments

@userquin
Copy link
Member

userquin commented Aug 12, 2022

Clear and concise description of the problem

Instead using static import on register service worker client module use dynamic import.

Check if we can use the mjs module from workbox-window (source).

Suggested solution

This will make the client load fast.

Alternative

No response

Additional context

https://developer.chrome.com/docs/workbox/modules/workbox-window/#loading-workbox-with-javascript-bundlers

Validations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant