holoviz / panel

Panel: The powerful data exploration & web app framework for Python
https://panel.holoviz.org
BSD 3-Clause "New" or "Revised" License
4.73k stars 514 forks source link

Document how to speed up loading times of web assembly apps #4492

Open joelostblom opened 1 year ago

joelostblom commented 1 year ago

Currently, it takes quite some time to load web assembly apps, e.g. https://joelostblom.github.io/nutrimap/. I am guessing that nothing can be done by the loading of pyodide in the beginning, but maybe some time can be shaved by pre-installing some of the packages somehow? Maybe "Pre-rendering" is related to this https://github.com/holoviz/panel/issues/3940?

And just to be clear, it is amazing that this conversion works so well in the first and that it is so easy to create an app that can run without Python!

joelostblom commented 1 year ago

Another thought here, maybe there is something that can be done in terms of storing cache/cookies user side with the fully installed environment that can be loaded quickly when the user returns to the page (unless there have been updates on the remote site, so there needs to be some date check to compare the locally stored version versus what is on the static remote site)

bertcoerver commented 9 months ago

Also interested in this. Found a discussion related to this here: https://discourse.holoviz.org/t/caching-pyiodide-and-python-env-for-pwa/4358