doublesecretagency / craft-googlemaps

Google Maps plugin for Craft CMS - Maps in minutes. Powered by the Google Maps API.
https://plugins.doublesecretagency.com/google-maps/
Other
10 stars 10 forks source link

Slow loading with many entries #88

Closed splendidrob closed 1 year ago

splendidrob commented 1 year ago

Just wandering what the best options are when dealing with many entries being used for map markers? I have a few hundred and the page load is getting very slow, the main entries on my page are paginated but obviously that doesn't work with the map markers...any suggestions appreciated!

lindseydiloreto commented 1 year ago

Sounds like you need to do a bit of caching! You have many caching options, including the native {% cache %} tag.

If caching messes up how the map loads, check out the guides on Required JS Assets and/or Delaying Map Initialization.

Hope that helps!