IRC channel logs
2025-11-16.log
back to list of logs
<ArneBab>What I still lack is a way to do the <link rel="preload" as="fetch" href="hoot.wasm"></link> trick for wtf8.wasm and reflect.wasm -- loading those two files serially costs about 50-80ms in load time for new users (270ms instead of 190ms). <ArneBab>This delay isn’t just numbers: you can see the Hello World on that page appear after the title. Preloading wtf8.wasm and reflect.wasm should make it fast enough that the Hello World appears instantly. <ArneBab>instantiate_streaming cannot take advantage of preloading, because the cors and credentials parameters to not match. Needs fetch("hoot.wasm", {credentials: 'include', mode: 'no-cors'}) for the same domain. For cross-origin see https://stackoverflow.com/a/78458099 <ArneBab>I’m down to 147ms for new visitors and 65-80ms for returning visitors … <ArneBab>it’s a hack (rebinding window.fetch to include the required options), but it works and it makes hoot usable on first load. <ArneBab>would be great if someone could test it on safari … (that’s the browser I cannot test it on)