Title: Autoptimize blocking Piotnet Google map
Last modified: August 27, 2020

---

# Autoptimize blocking Piotnet Google map

 *  Resolved [Mohamed Zeghlache](https://wordpress.org/support/users/mohamedzeghlache/)
 * (@mohamedzeghlache)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/autoptimize-blocking-piotnet-google-map/)
 * Hi
 * first of all, thank you for such a great plugin.
    I am having a problem which
   is the plugin is blocking the google map of the Piotnet plugin… but, this just
   happens when I load the page for the first time. When I reload it, the map appears
   normally
 * this is the page that has the problem
    [https://dzimobilia.com/%d8%a7%d8%b6%d8%a7%d9%81%d8%a9-%d8%b9%d9%82%d8%a7%d8%b1/](https://dzimobilia.com/%d8%a7%d8%b6%d8%a7%d9%81%d8%a9-%d8%b9%d9%82%d8%a7%d8%b1/)
   and the same problem in another elementor page template
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fautoptimize-blocking-piotnet-google-map%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/autoptimize-blocking-piotnet-google-map/#post-13324076)
 * First and foremost try to identify what is breaking things by just disabling 
   CSS or JS or HTML or Image optimization (incl. lazyload). Based on that we can
   see what the next steps need to be 🙂
 * frank
 *  Thread Starter [Mohamed Zeghlache](https://wordpress.org/support/users/mohamedzeghlache/)
 * (@mohamedzeghlache)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/autoptimize-blocking-piotnet-google-map/#post-13324192)
 * when I select :
 * Optimize JavaScript Code?
    Aggregate JS-files? Also aggregate inline JS?
 * there’s a problem, but when I remove these options. The map is displayed normally
 * how do I exclude it from autoptimize ?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/autoptimize-blocking-piotnet-google-map/#post-13324589)
 * OK, so what if you disable “also aggregate inline JS”? Or if you disable “aggregate
   JS”?
 *  Thread Starter [Mohamed Zeghlache](https://wordpress.org/support/users/mohamedzeghlache/)
 * (@mohamedzeghlache)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/autoptimize-blocking-piotnet-google-map/#post-13325057)
 * it works fine when I remove “Aggregate JS-files?” … but the website’s score goes
   down.
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/autoptimize-blocking-piotnet-google-map/#post-13326191)
 * OK, now re-enable “aggregate JS” and try excluding one of the following from 
   JS optimization:
 * * `wp-content/plugins`
    * OR `wp-content/themes` * OR `wp-includes/js`
 *  Thread Starter [Mohamed Zeghlache](https://wordpress.org/support/users/mohamedzeghlache/)
 * (@mohamedzeghlache)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/autoptimize-blocking-piotnet-google-map/#post-13327057)
 * thank you
 * the first one worked for me
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/autoptimize-blocking-piotnet-google-map/#post-13327124)
 * OK, next step would be to refine that to target one (or more) specific plugins,
   starting I guess with `wp-content/plugins/piotnet-addons-for-elementor/` ?
 *  Thread Starter [Mohamed Zeghlache](https://wordpress.org/support/users/mohamedzeghlache/)
 * (@mohamedzeghlache)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/autoptimize-blocking-piotnet-google-map/#post-13327404)
 * i had to add :
 * `wp-content/plugins/piotnet-addons-for-elementor/,wp-content/plugins/piotnet-
   addons-for-elementor-pro/`
 * and now it works perfectly
    thank you
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/autoptimize-blocking-piotnet-google-map/#post-13327925)
 * > now it works perfectly
 * good job mohamedzeghlache!
 * > thank you
 * you’re welcome, feel free to [leave a review of the plugin and support here](https://wordpress.org/support/plugin/autoptimize/reviews/#new-post)!
   🙂
 * have a nice weekend!
    frank

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Autoptimize blocking Piotnet Google map’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

## Tags

 * [autoptimze](https://wordpress.org/support/topic-tag/autoptimze/)
 * [map](https://wordpress.org/support/topic-tag/map/)
 * [piotnet](https://wordpress.org/support/topic-tag/piotnet/)

 * 9 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/autoptimize-blocking-piotnet-google-map/#post-13327925)
 * Status: resolved