7.1.0
We continue working on increasing the performance of MapSVG. This update adds lazy loading and changes the way the maps are initialized.
It is highly recommended to use the lazy loading feature if your map is located below the top visible area of the website and is not immediately visible to the user. Example:
[mapsvg id="1" lazy="true"]
🚀 Features / Improvements​
- Added 'lazy loading" functionality. Now you can add
lazy="true"
parameter to the shortcode to postpone map loading and increase page loading speed; - Map initialization scripts are no longer injected into the page body. This reduces the page size and increases loading speed. All the code is now downloaded on demand from the server. If you need to reinitialize the maps, use
MapSVG.loadMaps()
andMapSVG.unloadMaps()
functions; - Google Maps API is now loaded asynchronously;
- All JS dependencies have been updated to the latest version (Handlebars, Bootstrap, etc).