Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Claudio Ridolfi 11 posts 62 karma points
    Jun 19, 2015 @ 16:46
    Claudio Ridolfi
    0

    script position

    Hi, i just started using this nice plugin, i don't know if it's a problem with the plugin or the google js, but if I put the google api script after the content (like all the scripts, for SEO and to improve loading performance of the page), then the map doesn't load

  • Casper Andersen 126 posts 508 karma points
    Jun 21, 2015 @ 13:08
    Casper Andersen
    0

    I used to put all my scripts after content aswell, but learned here recently to put them in the head, putting them, after the content is apparently and old thing

  • David Brendel 792 posts 2970 karma points MVP 3x c-trib
    Jun 23, 2015 @ 14:34
    David Brendel
    0

    Hi Claudio,

    I think it would be gold for beste practices to move it to the bottom. I will try to refactore the output so that you can put everything at the bottom.

    As it is now it is more simple to make everything work with the JS stuff.

    Regards David

  • Claudio Ridolfi 11 posts 62 karma points
    Jun 23, 2015 @ 22:54
    Claudio Ridolfi
    0

    Found an easy solution to move the google api script at the end of the body, just wrap the map loader into a function and then call it using (document).ready, this is also very useful in websites that must be compliant the the EU "cookies directive" law

Please Sign in or register to post replies

Write your reply to:

Draft