Reply To: Combining JS files in WP Rocket

Home Forums MapPress Support Combining JS files in WP Rocket Reply To: Combining JS files in WP Rocket

#19665
Chris
Keymaster

Hi,

I don’t use WP Rocket, so I don’t know exactly how to prevent it from mangling scripts, but I can tell you all the MapPress JS files that may be used in the frontend.

Have you tried switching on the iframes option in the MapPress settings?  That might also work.

MapPress itself only has 1 file.  Note that it’s “index_mappress” not mappress_index“:
/build/index_mappress.js

The google clustering library is included with the plugin, and it’s loaded if you use clustering:
lib/js-markerclustererplus-main/modified-clusterer.js

The Leaflet engine and clustering are loaded from unpkg, if you use Leaflet:
leaflet.js
leaflet-omnivore.min.js
leaflet.markercluster.js