GeoMashup Autoptimize (jQuery issue)
-
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 displayUncaught 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,
- The topic ‘GeoMashup Autoptimize (jQuery issue)’ is closed to new replies.