Hi there!
i'm trying to load gmap scripts dynamically form via chrome extension. I use the following code and call it from extension's content script:
var script = document.createElement("script");
script.type = "text/javascript";
document.getElementsByTagName("head")[0].appendChild(script);
a very popular solution as you can see )
However, this only adds a corresponding tag into the head section, but doesn't execute the script.
e.g. main.js is not loaded.
Of coгrse, any further attempts to instantiate a map fail..
Beforehand thanks for any suggestions!
Andrey