Hi,
We build one inside website base WordPress: v4.9.8 and Enfold v4.4.1. and the server is in CHINA.
As all known, our user can not access ANY google service in china, so while the user try to access the website, because they can not access google maps service and google fonts, so the respond time is tooooo long for users.
It means, while the end user input the url of http://w.web.site/ to access the same LAN server, they need wait almost 2 seconds to open every page.
the cause url is:
https://maps.googleapis.com/maps/api/js?v=3.30
How can I disable load the google maps javascript on global sile? Thanks a lot!
Hey zambalee,
Here are some threads to consider:
https://kriesi.at/support/topic/disable-google-maps-api-call-in-backend/
If you need further assistance please let us know.
Best regards,
Victoria
Hey Victoria,
I just tried add bellow code in ./wp-content/theme/enfold/functions.php:
add_filter( 'avf_load_google_map_api', '__return_false' );
but it seems not work:
Hi,
Please disable js merging from Enfold > Performance tab and then install the code in the below link in your child theme functions.php
Best regards,
Vinay
Dear Vinay,
It works fine, thanks for your help!
Best Regards
Xiao Li