Malfunctioning of WP Rocket Plugin

Table of Contents

Problem #

The store locator is not working due to the “lazy load” feature from the “WP Rocket” plugin, which is causing the Google Maps script to be replaced with text.

Solution #

To resolve the above issue please follow the below steps:

1- Go to WP Rocket settings in the WP admin 

2- Add the following lines in the “Load Javascript deferred”.

/wp-includes/js/jquery/jquery.min.js
/wp-includes/js/jquery/jquery-migrate.min.js
maps.googleapis.com/maps/api/js
/wp-content/plugins/agile-store-locator/public/js/asl_libs.min.js
/wp-content/plugins/agile-store-locator/public/js/site_script.js
load javascript deferred

3- Next, is the add the following lines in the “Delay Javascript Execution”.

/wp-includes/js/jquery/jquery.min.js
/wp-includes/js/jquery/jquery-migrate.min.js
maps.googleapis.com/maps/api/js
/wp-content/plugins/agile-store-locator/public/js/asl_libs.min.js
/wp-content/plugins/agile-store-locator/public/js/site_script.js
agile-store-locator-script-js-before
agile-store-locator-lib-js-before
delay javascript

4- Save the changes, once you have added it properly, in case of an problem, please contact us through our support.