Hi @ojasya,
Thank you so much for getting in touch, we really appreciate your time.
Unfortunately, delaying specific scripts from executing can cause a few issues as WP Google Maps sends a request to the Google Maps API in order to generate the map data which only once has returned, is WP Google Maps able to apply and manipulate some of this data so the script order is quite important.
I don’t believe there were any changes to the script calls in the latest WP Google Maps update, however, script delays can cause issues as mentioned.
Might I suggest perhaps adding exclusions for the WP Google Maps script files to WP Rocket and confirming if this perhaps helps?
Additionally, feel free to get in touch with us directly via our website as one of our agents will be more than happy to take a closer look at any other options.
Kindest Regards,
Steven De Beer
Thread Starter
ojasya
(@ojasya)
Hi @stevendebeer
Thanks for your prompt reply!
Yes your explanation completely makes sense.
If you can help me with excluding required scripts, that would be awesome.
Thanks
-
This reply was modified 4 years, 5 months ago by
ojasya.
Hi @ojasya,
Thank you so much for getting back to me.
If possible, the full file directory that can be excluded is as follows:
wp-content/plugins/wp-google-maps/js
and
wp-content/plugins/wp-google-maps/js/v8
If WP Rocket requires you to specifically exclude the .js files, this should look something like the below:
wp-content/plugins/wp-google-maps/js/dataTables.responsive.js
wp-content/plugins/wp-google-maps/js/jQuery.dataTables.js
wp-content/plugins/wp-google-maps/js/v8/wp-google-maps.min.js
Kindly note, this is for WP Google Maps so if you require any additional assistance, feel free to get in touch with us directly via our website.