Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Improve site performance on slow networks / mobile #93

Open
arimeq opened this issue Mar 16, 2022 · 2 comments
Open

Improve site performance on slow networks / mobile #93

arimeq opened this issue Mar 16, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@arimeq
Copy link
Contributor

arimeq commented Mar 16, 2022

There is a number of optimisations that can be used here.

  • start using Flask-Minify is probably the easiest thing that will already help
  • avoid downloading code in runtime from CDNs; instead download a copy upon build and bundle everything together in order to reduce number of network requests
  • enable data reload without restarting whole frontend
  • configure service worker / PWA
@arimeq arimeq added the enhancement New feature or request label Mar 16, 2022
@ttomasz
Copy link
Contributor

ttomasz commented Mar 20, 2022

Did you try to measure how much these steps would impact the load time?

With traditional websites minifying is great but here we have very little static resources while we load like 2MB of GeoJSON data so I'm not sure minifying 200KB of HTML, JS, CSS to 100KB will have a significant effect.

@ttomasz
Copy link
Contributor

ttomasz commented Mar 20, 2022

As for optimizing GeoJSON once it becomes too heavy we can switch to vector tiles

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants