4 ms·
We use a very aggressive page caching, so that all of the text and statistics are pre-rendered when the page is requested. The visualizations only initiate whe
by davelandry 11y ago
We use a very aggressive page caching, so that all of the text and statistics are pre-rendered when the page is requested.
The visualizations only initiate when they are visible in the window. When that happens, they make an API call for the data and then initialize the D3plus visualization.
All of the visualizations use shared attributes, for things like location names and industry colors/icons. Those API calls are stored in the browser using localforage.
https://github.com/mozilla/localForage https://github.com/mozilla/localForage