Comprehensive Google Map Plugin
How to make W3 Total Cache & plugin to play nicely together (2 posts)

  1. alexanderzagniotov
    Plugin Contributor

    Posted 2 years ago #

    1. Click on "Minify" menu item on the left side (probably under "Performance")

    2. Find "Never minify the following JS files" text area

    3. Add to the text area link to plugin JavaScript file cgmp.framework.min.js. For example:
    http://YOUR-DOMAIN-NAME/wp-content/plugins/comprehensive-google-map-plugin/assets/js/cgmp.framework.min.js. You can obtain the link by inspecting the HTML source of your page where the map is, when W3 Total Cache is DISABLED (otherwise you would not find it since W3 Total Cache would cache it).

    Please make sure that the JS link is valid(!) before adding in the text area: paste it in the browser's address bar and try to load it. Do not guess.

    Don't worry about decreasing performance of your page by thinking that you are increasing the page load time - the plugin's JS is ALREADY minified using Google's Closure Compiler. In other words, there is no point letting W3 Total Cache to minify ALREADY minified JS file. When the latter happens, the Google map plugin stops working.

    4. Clear all cache


  2. alexanderzagniotov
    Plugin Contributor

    Posted 2 years ago #

    Most probably you also need to add the following URL to "Never minify the following JS files":

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Comprehensive Google Map Plugin
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic