Title: loading map – please wait&#8230;
Last modified: August 21, 2016

---

# loading map – please wait…

 *  [camiller](https://wordpress.org/support/users/camiller/)
 * (@camiller)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/loading-map-please-wait/)
 * Hi Robert,
 * here is my question regarding your marvelous plugin:
    I can perfectly use the
   plugin with a standard theme.
 * On full fashion theme, if I open my website directly to the page using it, it’s
   working. Example: [http://5juillet2014.fr/itineraire/](http://5juillet2014.fr/itineraire/)
 * But as many people start at Homescreen: [http://5juillet2014.fr](http://5juillet2014.fr)
   
   the webpage plugin is not loaded correctly.
 * I guess it’s an issue with javascript inserted in wp_footer() which is best for
   having smooth navigation and music play.
    I tried your FAQ answer: “Where to 
   insert Javascript files on frontend?” under Misc / General settings to “header(
   +inline javascript)”
 * it works but it’s breaking the navigation and music…
    Is there a way to force
   javascript loading without beaking it?
 * Many thanks for your help!
 * [http://wordpress.org/plugins/leaflet-maps-marker/](http://wordpress.org/plugins/leaflet-maps-marker/)

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

 *  Plugin Author [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * (@harmr)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/loading-map-please-wait/#post-4197734)
 * Hi camiller,
    thanks for your feedback (I´d appreciate your review at [http://wordpress.org/support/view/plugin-reviews/leaflet-maps-marker](http://wordpress.org/support/view/plugin-reviews/leaflet-maps-marker)
   even more 😉
 * I took a look at your site. Unfortunately there is no other way than to load 
   the javascript in the footer (recommended) or in the header.
    To me it seems 
   as there are some bugs within the themes file – because if you open the console
   in the browser, you see 3 javscripts errors for example, 2 directly related to
   files from your theme:
 * Ungültige URI. Laden der Medienressource fehlgeschlagen.
    [http://5juillet2014.fr/wp-content/themes/fullfashion/js/thirdparty/cached-script.js?ver=2.3](http://5juillet2014.fr/wp-content/themes/fullfashion/js/thirdparty/cached-script.js?ver=2.3)
   Line 14
 * TypeError: jQuery(…).attr(…) is undefined
    [http://5juillet2014.fr/wp-content/themes/fullfashion/js/functions.js?ver=2.3](http://5juillet2014.fr/wp-content/themes/fullfashion/js/functions.js?ver=2.3)
   Line 171
 * TypeError: “length” is read-only
    [https://maps.gstatic.com/intl/de_de/mapfiles/api-3/13/14/main.js](https://maps.gstatic.com/intl/de_de/mapfiles/api-3/13/14/main.js)
   Line 3 I´d suggest getting in contact with the theme developer – he/she might
   be the best person to help here first.
 * You could also try the pro version which uses some more current javascript, but
   I am not sure if this solves your issue..
 * best,
 * Robert
 *  Thread Starter [camiller](https://wordpress.org/support/users/camiller/)
 * (@camiller)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/loading-map-please-wait/#post-4197905)
 * Thanks Robert for your answer. I’ll check with the theme developper.
 * best,
 * Camille
 *  Thread Starter [camiller](https://wordpress.org/support/users/camiller/)
 * (@camiller)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/loading-map-please-wait/#post-4197990)
 * Hi Robert,
 * Here is the answer of the dev team of my theme:
 * > Unfortunately I have bad news I have spent a few hours trying to make the plugin
   > work.
   >  But I didn’t manage to do so. From a technical point o view that is 
   > impossible. I had a few ideas which involved reloading the javascript of the
   > plugin to force it parse the content and reset the maps. But I’ve noticed that
   > the javascript is being generated directly into HTML. I tried to parse the 
   > HTML get the javascript and eval it to make it work after each ajax request,
   > depending on what map you are. Now this has two flaws, first that eval is evil
   > and second that I couldn’t find the exact position of the javascript to re-
   > parse it again. Therefor this wasn’t a good solution. Lastly I tried to modify
   > the plugin so that it would load the javascript files. But this had another
   > issue, the plugin didn’t want to load the content throwing an error that the
   > script was already instantiated. Which is true due to the fact that the request
   > was coming from ajax, and it should have retriggered the script. That means
   > that when the page is being loaded firstly, even though there is no map on 
   > the page (for example contact) the plugin will still initialize itself. And
   > wouldn’t allow another instance of itself. Which I hoped would happen after
   > an ajax request. I have removed all errors and fixed, your older issue with
   > the contact form so it wouldn’t throw any errors. And the plugin still didn’t
   > work. And it shouldn’t because it wasn’t created with ajax in mind. In conclusion
   > I can only suggest you to disable ajax. Yes you will have to sacrifice the 
   > music but at least you will have all the functionality you want to keep. Thank
   > you and sorry for making you wait. -Dennis
 * What do you think about that?
 * Thanks!
 *  Plugin Author [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * (@harmr)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/loading-map-please-wait/#post-4197991)
 * Hi Camille,
    I am not sure if I can help here. If I understand Dennis correctly,
   the only way would be to disable AJAX in your theme, and this would have some
   sideeffects on other functionalities you are using. For me this is a special 
   theme issue and I think Dennis is the best one to appproch your issue here… best,
   Robert

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

The topic ‘loading map – please wait…’ is closed to new replies.

 * ![](https://ps.w.org/leaflet-maps-marker/assets/icon.svg?rev=970936)
 * [Leaflet Maps Marker (Google Maps, OpenStreetMap, Bing Maps)](https://wordpress.org/plugins/leaflet-maps-marker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/leaflet-maps-marker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/leaflet-maps-marker/)
 * [Active Topics](https://wordpress.org/support/plugin/leaflet-maps-marker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/leaflet-maps-marker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/leaflet-maps-marker/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/loading-map-please-wait/#post-4197991)
 * Status: not resolved