Okay
  Public Ticket #1160200
How to disable maps .js download?
Closed

Comments

  •  1
    seekman started the conversation

    Hello,

    I disabled the map from the contact page. However the theme is still downloading the maps .js files from google. And it slows unnecessarily the site.

    Can you please tell me how to disable the site to download those files from google?


    Thanks

  •  2,010
    Ocean replied

    Hi,

    You can open file : modis/functions.php

    Find and close this line :

    wp_enqueue_script("modis-mapapi", "$protocol://maps.googleapis.com/maps/api/js?key=AIzaSyAvpnlHRidMIU374bKM5-sx8ruc01OvDjI",array('jquery'),false,false);
    



  •  1
    seekman replied

    thanks, it worked.

    How can I make it load the bookly .js only on the reservation form page?

    It's no sense for it to load on every page. It's a waste of bandwidth and php calls.

  •  2,010
    Ocean replied

    Hi,

    I'm so sorry but now It's impossible.

    I'll find solution for this issue and update in future.