Skip to content

Reduce page load times of web-UI #477

@mbfm

Description

@mbfm

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 --release and then checking the "Network" tab in your browser developer tools for the WASM binary's download size.

Metadata

Metadata

Assignees

Labels

component: leaMostly related to LEA.good-first-issueAn issue that can be tackled by new contributors.type: enhancementFulfills a need or requirement by improving an existing functionality.

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions