explorer icon indicating copy to clipboard operation
explorer copied to clipboard

[Task]: Improve the intial load speed of the page regarding wasm

Open msarcev opened this issue 2 years ago • 1 comments

Task description

There are already two wasm files loading on dev branch (sdk + identity wasm) and after nova there will be potentialy two more (sdk-nova etc...).

  • Look into a way to speed up the "initial page load", be it with lazy loading of wasms depending on Landing network or anything else that would help

Requirements

N/A

Acceptance criteria

N/A

Creation checklist

  • [X] I have assigned this task to the correct people
  • [X] I have added the most appropriate labels
  • [X] I have linked the correct milestone and/or project

msarcev avatar Jan 12 '24 12:01 msarcev

For me sometimes it takes really long to load (sometimes even over a minute, not sure what's going on there, maybe a local problem), but I also get this in the browser console logged:

index-c25614d4.js:23 `WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:
 TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'.

Thoralf-M avatar Jan 24 '24 19:01 Thoralf-M