take the api stuff out of the document flow, and insert it with append (or a similar function). when the user clicks.
heohni wrote:
Hi, sorry, I may blind... <span id="gmap" style="display:none"> <script src="http://maps.google.com/maps?file=api&v=2&key=........ .... stuff to load the map details.... </span> <a class="plainPopup" href="#gmap">show map</a> When I load the page, the google api file is also loading, even I don't need it. I would like to load it only, if the user has clicked the map link to open the map. How can I do this? My jquery file looks like this: $(document).ready(function() { $('.plainPopup').click(function() { ..... how can I add here the inlcude of the api file? Thanks for help!!! Bye Heidi