Deferring JS prevents OpenStreetMap from loading
-
When I activate the JS deffer option, for some reason the OpenStreetMap is not loading at all.
Here is the location of the map when the JS deffer is turned off:
https://pasteboard.co/w1kvOW226KyM.pngAnd here is the live page with the JS deffer turned on:
https://testenv.bestrestaurantsfinder.com/best-restaurants-in-serbia/As you can see the map is gone. I tried adding to the JS Deferred / Delayed Excludes section all of the JS files that have to do with the location and OpenStreetMap like these:
leaflet.min.js leaflet.js leaflet bouncemarker.min.js bouncemarker.js bouncemarker location-leaflet-map.min.js location-leaflet-map.js leaflet.markercluster.min.js leaflet.markercluster.js leaflet-gesture-handling.min.js leaflet-gesture-handling.js location-map.min.js location-map.js location-api.min.js location-api.js map-api.min.js map-api.js
But it did not help. The map still does not show up.
I also checked if there is conflict with another plugin, but there is not. This happens only when I turn on the JS deffer. And the non cached version of the plugin is rendering the map normally.
Please advise how to resolve this or what should I add to the exclude section in order to render the map.
The page I need help with: [log in to see the link]
- The topic ‘Deferring JS prevents OpenStreetMap from loading’ is closed to new replies.