rio-labs / rio

WebApps in pure Python. No JavaScript, HTML and CSS needed
https://rio.dev
Apache License 2.0
453 stars 14 forks source link

Split the index.html into smaller, cachable, parts #21

Closed Aran-Fey closed 1 month ago

Aran-Fey commented 1 month ago

Currently, our JS and CSS is inlined in the index.html, so browsers are forced to re-download it every time. We should extract these into static files that the browser only has to load once and can then cache.

Bonus: Most of our file size seems to be coming from highlightjs. We should try to find a way to lazy-load it on demand.