Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve page loading times #102

Closed
benStre opened this issue Feb 25, 2024 · 0 comments · Fixed by #103
Closed

Improve page loading times #102

benStre opened this issue Feb 25, 2024 · 0 comments · Fixed by #103
Assignees
Labels
enhancement New feature or request important

Comments

@benStre
Copy link
Member

benStre commented Feb 25, 2024

Since we don't use bundlers in UIX, nested module graphs can take quite some time to resolve, which is especially noticeable with slow network connections and when opening a page for the first time.

Optimization strategies:

  • We can get optimal loading times by adding <link rel=modulepreload/> tags for each nested module dependency to the initial HTML page, which gives the browser the opportunity to load all module dependencies in parallel (works great with http/2, might be even better with http/3 in the future (QUIC & HTTP/3 support denoland/deno#1558))

  • Additionally, we should currently not load the rust runtime/decompiler per default, because the wasm file is quite big and normally we only need the decompiler for debugging.

  • We can minify JS files on a per-module-basis to decrease the overall download size and required loading time

@benStre benStre added enhancement New feature or request important labels Feb 25, 2024
@benStre benStre self-assigned this Feb 25, 2024
@benStre benStre changed the title Improve UIX loading times Improve page loading times Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request important
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant