consider allow late importScripts/import for local URLs
Nobody has claimed this yet.
- Dominant language
- Bikeshed
- Stars
- 3.6k
- Forks
- 324
- Avg merge
- 14d 22h
- Merged PRs (30d)
- 1
Description
Could we allow late import() and importScripts() after installation if the script URL is considered "local"?
https://fetch.spec.whatwg.org/#local-scheme
So for example, you could do a late import() or importScripts() to a data: or blob: URL.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Service Worker specification sections governing late import() and importScripts(), then compare their restrictions with the Fetch specification's local scheme definition. Review the 48-comment discussion to determine whether the requested behavior has a settled design; done would require an agreed specification change covering local data: and blob: URLs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100