If domainA and domainB both have a relative link to /resources/
jquery-1.3.2.js, they both will not share the same cached copy of
jQuery. You'll need to use an absolute url that both point to the same
place, like you mentioned with Google's AJAX Libs. That's where the
advantage is for those who visit several sites referencing the same
file on Google.

On Jul 31, 10:32 am, dev <java_mail_l...@yahoo.com> wrote:
> Hello,
>
> If two sites,www.domainA.comandwww.domainB.comboth use jQuery and
> allow script caching.
> (sample tag <script src="/resources/jquery-1.3.2.js" type="text/
> javascript"></script>)
>
> In browser, in user's computer, will the two sites use the same copy
> of jQuery (assuming both running same jquery version) ?
>
> What if both domain use jQuery hosted on Google (http://
> code.google.com/apis/ajaxlibs/) ?
> Also, in this case if one site installs custom jQuery plugin, will it
> be available to other site ?
>
> Thank You.

Reply via email to