I have added Google map block by Xstore using Elementor. it works only on first visit of the page, when you revisit the page you get the error:
Uncaught TypeError: Cannot read properties of undefined (reading 'DEFAULT')
at initMap (google-map.js:29:71)
at GoogleMap (google-map.js:174:9)
at _runHook (frontend.min.js:2:15266)
at Object.doAction (frontend.min.js:2:15868)
at Object.runReadyTrigger (frontend.min.js:2:20034)
at frontend-modules.min.js:2:17704
I am using LItespeed cache plugin. I’ve tried to add ‘google-map.js’ to excludes.
I’ve tired W3total Cache (recommended by you).
It only works if I disable caching plugin.