Open lgarron opened 9 months ago
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.
<link rel="modulepreload" href="path/to/worker/entry">
cubing/search
This requires https://github.com/evanw/esbuild/issues/2866 for us to implement.
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 whencubing/search
is loaded, so that the worker instantiation is primed sooner.This requires https://github.com/evanw/esbuild/issues/2866 for us to implement.