Title: GeoMashup   Autoptimize (jQuery issue)
Last modified: August 31, 2016

---

# GeoMashup Autoptimize (jQuery issue)

 *  [jbd7](https://wordpress.org/support/users/jbd7/)
 * (@jbd7)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/geomashup-autoptimize/)
 * Hi,
 * Loving Geo Mashup, I have recently installed Autoptomize to speed up the loading
   of my blog.
 * I had to add `plugins/geo-mashup/` to the list of exclusions of Autoptimize, 
   else the maps would not load and the console would display `Uncaught ReferenceError:
   GeoMashup is not defined`
 * I am now facing a dilemma regarding the autoptimization of JS files:
 * 1. if I exclude jQuery.js files from Autoptimize, Geo Mashup behaves normally,
   but Google PageSpeed tells me that jQuery is render-blocking
 * 2. if I do not exclude jQuery.js, jQuery is optimized, Google Maps load but markers
   are not placed on the map. The console displays `Uncaught ReferenceError: jQuery
   is not defined(anonymous function) @ taxonomy.js?ver=1.8.8:11geo-mashup-mxn.js?
   ver=1.8.8:621 Uncaught ReferenceError: jQuery is not definedGeoMashup.createMap
   @ geo-mashup-mxn.js?ver=1.8.8:621(anonymous function) @ ?geo_mashup_content=render-
   map&map_data_key=123456789abcd&zoom=8&add_overview_co…:3`
    and `Uncaught ReferenceError:
   jQuery is not definedGeoMashup.createMap @ geo-mashup-mxn.js?ver=1.8.8:621(anonymous
   function) @ ?geo_mashup_content=render-map&map_data_key=123456789abcd&zoom=8&
   add_overview_co…:3`
 * Do you have an idea of what I can do to have both Geo Mashup and Google PageSpeed
   happy?
 * Thanks,
 * [https://wordpress.org/plugins/geo-mashup/](https://wordpress.org/plugins/geo-mashup/)

The topic ‘GeoMashup Autoptimize (jQuery issue)’ is closed to new replies.

 * ![](https://ps.w.org/geo-mashup/assets/icon.svg?rev=1631806)
 * [Geo Mashup](https://wordpress.org/plugins/geo-mashup/)
 * [Support Threads](https://wordpress.org/support/plugin/geo-mashup/)
 * [Active Topics](https://wordpress.org/support/plugin/geo-mashup/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/geo-mashup/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/geo-mashup/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [js](https://wordpress.org/support/topic-tag/js/)

 * 0 replies
 * 1 participant
 * Last reply from: [jbd7](https://wordpress.org/support/users/jbd7/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/geomashup-autoptimize/)
 * Status: not resolved