OpenStreetMaps: Avoid Unload Event Listeners
-
GTMetrix reports recommend that unload not be used for /wp-content/plugins/directorist/assets/vendor-js/openstreet-map/openlayers/OpenLayers.js?ver=5.9.3
It says:
Avoid Unload Event Listeners
- The unload event does not fire reliably and listening for it can prevent browser optimizations like the Back-Forward Cache. Use pagehide or visibilitychange events instead.
Since we’re not using maps at all on this site, is there a way to completely disable OpenStreetMaps such that the script is not called or loaded at all?
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘OpenStreetMaps: Avoid Unload Event Listeners’ is closed to new replies.