[openstreetmap/openstreetmap-website] Initalise the MiniMaps only when the style is acually needed (PR #6792)

Frank Elsinga notifications at github.com
Tue Feb 10 21:01:00 UTC 2026


### Description

I can't percive a mesurable performance difference, most difference comes from tiles being in cache or not.
Seems to be very similar to OSM (cannot tell a difference).

### How has this been tested?

Manually, loading the map with either regular internet, 3G or caching disabled.

Resolves https://github.com/openstreetmap/openstreetmap-website/issues/6790
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/6792

-- Commit Summary --

  * Initalise the MiniMaps only when the style is acually needed

-- File Changes --

    M app/assets/javascripts/leaflet.layers.js (49)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/6792.patch
https://github.com/openstreetmap/openstreetmap-website/pull/6792.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6792
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/6792 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260210/2ac03e40/attachment.htm>


More information about the rails-dev mailing list