Open
Description
During the 40 seconds it takes to download the latest full-data WASM demo, the page is not interactive.
Short-term solutions:
- Go back to using testdata
- Add a loading spiral that goes away when WASM is finished loading (this would take about 10 lines of code)
- Print an error upon input if the WASM is not loaded
Medium-term solution: download the locale data on demand. Steps to make that work:
- The wasm-demo datagen should generate a directory of language-specific postcard files
- A data provider should be hooked up that informs JS when root data is being used
- JS code that
fetch
es the requested language pack when that callback occurs, and then re-tries the rendering
Steps 1 and 3 should already be achievable via public APIs. Step 2 is doable in Rust but may need an FFI hook. It will be easier to write once callback support is added.
Activity