Tagged: Website Speed
Hello! We just set up your theme for our new website and were running a test on the speed load. We were using http://www.monitis.com/pageload/ for the test. Some of the things that were shown to slow down our site load are:
maps.gstatic.com
maps.googleapis.com
I couldn’t find anything related to maps on our website (gearouthere.com). Is there any way to disable/take out these two components to help us speed the site up? Is it something in the theme or should we be looking in our plugins?
Hi gearouthere!
try to add this code into your functions.php for deactivating the google api:
add_filter( 'avia_google_maps_widget_load_api', 'avia_remove_widget_script', 10, 2);
function avia_remove_widget_script($load, $config) {
$content = apply_filters('avia_builder_precompile', get_post_meta(get_the_ID(), '_aviaLayoutBuilderCleanData', true));
if(strpos($content, 'avia-google-maps')) return false;
return true;
}
Hope this helps.
Best regards,
Andy