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

Reduce round trips for workers by using modulepreload #291

Open
lgarron opened this issue Sep 8, 2023 · 0 comments
Open

Reduce round trips for workers by using modulepreload #291

lgarron opened this issue Sep 8, 2023 · 0 comments
Labels
📦 cubing/search enhancement New feature or request long-term Any issue we're interested in, but that may take years for us to work on.

Comments

@lgarron
Copy link
Member

lgarron commented Sep 8, 2023

https://developer.chrome.com/blog/modulepreload/

We can't set this in HTML, but we could try creating <link rel="modulepreload" href="path/to/worker/entry"> from JavaScript when cubing/search is loaded, so that the worker instantiation is primed sooner.

This requires evanw/esbuild#2866 for us to implement.

@lgarron lgarron added enhancement New feature or request long-term Any issue we're interested in, but that may take years for us to work on. 📦 cubing/search labels Sep 8, 2023
@lgarron lgarron changed the title Reduce round trips for worker by using modulepreload Reduce round trips for workers by using modulepreload Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 cubing/search enhancement New feature or request long-term Any issue we're interested in, but that may take years for us to work on.
Projects
None yet
Development

No branches or pull requests

1 participant