skypackjs / skypack-cdn

An issue tracker for the CDN
107 stars 5 forks source link

Prefetch Link headers #303

Open mfulton26 opened 2 years ago

mfulton26 commented 2 years ago

When loading a module that has a deep tree of transitive dependencies the latency can become rather high as the browser fetches the first module, then discovers more modules to import and so fetches those only to find more modules to import and so forth.

Can this be sped up by providing HTTP Link response headers with rel prefetch to tell the browser about all dependencies, especially transitive ones?