OpenHistoricalMap / issues

File your issues here, regardless of repo until we get all our repos squared away; we don't want to miss anything.
Creative Commons Zero v1.0 Universal
19 stars 1 forks source link

Show splash screen before interactive map for low-bandwidth users #836

Open jidanni opened 4 months ago

jidanni commented 4 months ago

Seems like the OHM homepage takes many times longer to load than the OSM homepage, at least on a low bandwidth connection.

Maybe just use a static image of it instead, until the user starts clicking on it.

1ec5 commented 4 months ago

Seems like the OHM homepage takes many times longer to load than the OSM homepage, at least on a low bandwidth connection.

The reasons for this vary from location to location, but the main performance bottleneck in many places is that the map tiles encode boundaries very inefficiently as overlapping lines (formerly overlapping polygons): #800. This requires not only extra bandwidth but also extra CPU usage when MapLibre GL JS tries to render the boundaries and the timeslider plugin tries to filter them.

Maybe just use a static image of it instead, until the user starts clicking on it.

This would require us to publish raster tiles in the first place: #532.

jidanni commented 4 months ago

This would require us to publish raster tiles in the first place.

Naw. Just one big phony JPG.

  1. View the website and wait for it to settle.
  2. Take a screenshot.
  3. This screenshot now becomes the "preloaded homepage" (embed it into index.html), sort of like those phony Bank of America websites... (until the user clicks something.)
  4. Voila, the site now becomes "lightning fast".