Forums / Setup & design / ezscript_require external resource? / Comment66710
Thomas Parisot
Friday 18 March 2011 6:11:01 am
Thanks for your replies :-)
Indeed, yes I wanted to load gmap only for pages requiring it; not on all the site webpages.
I load the script asynchroneously so far (within a local JS) but there are many cases where you can call a remote script without an ending .js extension, for JS scripts or JSON-P response (like YQL, Twitter API or Webservices).
I guess the extension should check for an URI scheme, or at least, a "//" (no scheme = same protocol).