stamen / chartographer

https://stamen.github.io/chartographer/
MIT License
19 stars 4 forks source link

Add SVGs to store #41

Closed aparlato closed 1 year ago

aparlato commented 1 year ago

As followup to https://github.com/stamen/chartographer/pull/38, we can have further performance improvements by storing our SVG to render in a store so that on subsequent loads, it doesn't need to recalculate values.

Hopefully, this will improve performance enough that the app feels snappy to a user, but if we find that there's still load times without visible progress indicators, we might consider adding in more loading screens. Right now, we have an actual progress bar on initial style load that runs based on progress in expand-layers. This is by far the most intensive activity in the app, but if necessary we can add a generic spinning loader to indicate work happening that we cannot estimate time on.