### 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/[email protected]>
_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to