MystenLabs / walrus-sites

Walrus Sites: Decentralized Websites using Sui and Walrus.
https://docs.walrus.site/walrus-sites/intro.html
Apache License 2.0
17 stars 16 forks source link

Inline the service worker into the `index.html` for performance #7

Closed giac-mysten closed 2 months ago

giac-mysten commented 7 months ago

We save 1 RTT by loading the service worker with the first html

giac-mysten commented 7 months ago

From a quick look, this does not seem to be possible, because the register function only takes paths as input, and the service worker needs to have the same origin as the page (therefore, data and blobs don't work).

Keeping this open in case a better option comes up.

giac-mysten commented 2 months ago

Closing as no solution came up.