[openstreetmap/openstreetmap-website] Disable `validateStyle` in production for minor initalisation performance gains on slower hardware (PR #6754)

Frank Elsinga notifications at github.com
Thu Jan 29 01:39:49 UTC 2026


### Description

This PR pulls the `validateStyle` improvementation from the minimap.
This currently is not a noticable optimisation for the minor map views, since their style is very light.

Some context: https://github.com/maplibre/maplibre-gl-js/pull/2390
It also allows the tree-shaker (assuming you have that, I have not tested how good this works) to tree shake some of maplibres code reducing bundle size.

### How has this been tested?

Running the minor map views.

You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Disable `validateStyle` in production for minor initalisation performance gains on slower hardware

-- File Changes --

    M app/assets/javascripts/maplibre/map.js (1)
    M app/assets/javascripts/osm.js.erb (1)

-- Patch Links --

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

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

Message ID: <openstreetmap/openstreetmap-website/pull/6754 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260128/90c3a716/attachment-0001.htm>


More information about the rails-dev mailing list