Hello Google AJAX Libraries team,

I was wondering if someone could tell me if the library is designed to
prevent multiple calls to fetch the same library?

Let's say you have a page with two embedded scripts in a page, like
this:

<html>
 <head>
  ...
 <script type="text/javascript" language="javascript" src="http://
www.url.com/js/script1.js"></script>
 <script type="text/javascript" language="javascript" src="http://
www.url.com/js/script2.js"></script>
 ...
 </head>
 <body>
 ...
 </body>
</html>


and both script1.js and script2.js use:
google.load('jquery', '1');
google.load('jqueryui', '1.7');

Will the JQuery and JQuery-UI libraries be loaded twice??

I know I could combine both scripts or preload the dependencies once
and for all, but to make client-code easier to use we wanted to reduce
the amount of code they have to manage, and the hassle of importing
dependencies themselves.

But that wouldn't be too good if we load as many libraries as we load
scripts.


Thanks in advance for letting me know if that's the case and if
there's a readily available workaround, or if I need to develop a
guard clause.


Regards,

--
Laurent Malvert
Analyst Programmer
 Macquarie University, NSW 2109, Australia
 Office of Institutional Advancement

 p: +61-2-9850-1385
 m: +61-4-1095-7130
 e: [email protected]
 w: http://www.mq.edu.au/advancement/

 CRICOS Provider No 00002J

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google AJAX APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-ajax-search-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to