-
Notifications
You must be signed in to change notification settings - Fork 33
Reduce page load times of web-UI #477
Copy link
Copy link
Open
Labels
component: leaMostly related to LEA.Mostly related to LEA.good-first-issueAn issue that can be tackled by new contributors.An issue that can be tackled by new contributors.type: enhancementFulfills a need or requirement by improving an existing functionality.Fulfills a need or requirement by improving an existing functionality.
Metadata
Metadata
Assignees
Labels
component: leaMostly related to LEA.Mostly related to LEA.good-first-issueAn issue that can be tackled by new contributors.An issue that can be tackled by new contributors.type: enhancementFulfills a need or requirement by improving an existing functionality.Fulfills a need or requirement by improving an existing functionality.
Type
Projects
Status
Backlog
Our web-UI is starting to require a relatively large download upfront for the WASM binary. The size of the WASM binary can be optimized by adapting the steps here: https://book.leptos.dev/deployment/binary_size.html
Mind that we have a CSR application, not SSR. We do not use
cargo-leptos. We do not use the nightly compiler. The "Code Splitting" section also looks like it cannot be applied to our codebase, since we do not use server functions.I would recommend focusing on steps 2 and 3 in the "Things to Do" section for now (modifying the release profile to optimize for speed and then ensuring we use compression for serving the WASM file in CARL).
You can test the size of the WASM binary by running
cargo lea --releaseand then checking the "Network" tab in your browser developer tools for the WASM binary's download size.