Monday, December 1, 2008

[jQuery] Re: ui.jquery.com - down?

See

http://code.google.com/apis/ajaxlibs/documentation/index.html#jquery

http://code.google.com/apis/ajaxlibs/documentation/index.html#jqueryUI

They advertise those direct urls, as well as others.

- Richard

On Mon, Dec 1, 2008 at 12:19 PM, Charlie Griefer <charlie.griefer@gmail.com> wrote:
On Mon, Dec 1, 2008 at 8:45 AM, Mike Alsup <malsup@gmail.com> wrote:

> Welcome to Google's API Loader
>
> <script type="text/javascript" src="http://www.google.com/jsapi"></
> script>
> <script type="text/javascript">
> google.load("jquery", "1.2.6");
> google.load("jqueryui", "1.5");
> </script>

If you link directly to the scripts that you need you can eliminate
the unnecessary google script and save yourself a needless roundtrip:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/
libs/jquery/1.2.6/jquery.min.js
"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/
libs/jqueryui/1.5.2/jquery-ui.min.js
"></script>


Hi Mike:

Is that "allowed" under the ToS?  It's definitely cleaner, but I'd be concerned about it not working at some point if it isn't officially supported.  Can't think of any reason why it wouldn't be... but just raises a small flag in my (admittedly small) brain since it's not the syntax that google shows in the examples :) 

Thanks,
Charlie


--
I have failed as much as I have succeeded. But I love my life. I love my wife. And I wish you my kind of success.

No comments: