yaptide / ui

Yet Another Particle Transport IDE - frontend
https://yaptide.github.io/web_dev/
GNU General Public License v3.0
9 stars 4 forks source link

Examples should be loaded from public instead packaged into app JS bundle #1598

Closed grzanka closed 1 month ago

grzanka commented 2 months ago

Right now the JS bundle has ~10MB:

image

by removing examples from it we can drastically reduce its size.

Example should be downloaded upon opening.

grzanka commented 2 months ago

Another test on LTE connection: 30 MB data downloaded in 11 seconds: image

Here are the biggest ones: image

grzanka commented 2 months ago

It seems that removal of scipy helps a lot as well. I made some tests on https://github.com/yaptide/ui/pull/1597 branch:

image

grzanka commented 2 months ago

After recent merge of the PR: https://github.com/yaptide/ui/pull/1597 I can confirm the total size transferred dropped down to 15.6 MB with JS bundle being the biggest element:

image

grzanka commented 2 months ago

According to https://www.webpagetest.org/ the loading time is 20 seconds. That should be improved at least by factor 4.

image image image

grzanka commented 2 months ago

I've also tried to analyse size of the JS bundle with https://github.com/danvk/source-map-explorer

Funny to see that the biggest entry is ../node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js 21957856

Full results here

image result.zip

grzanka commented 1 month ago

Seems fixed now:

image

grzanka commented 1 month ago

image image image