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
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
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.
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
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
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
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
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
is working on a reply...