0

Is there a service that will return the version numbers of jQuery that are hosted on Google? They are posted on their webpage, but is there a way to get that data without parsing the page text?

I want to automatically link to the latest 1.x release when scaffolding a new project (not link to the latest version on production sites).

Thanks.

nichoth
  • 55
  • 5
  • Just use this: http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js see here: http://stackoverflow.com/questions/441412/is-there-a-link-to-the-latest-jquery-library-on-google-apis – Joe Jun 02 '14 at 20:39

1 Answers1

2

Yes, you can simply link to the "1.x" family:

http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js

...and parse out the version from the beginning of that file:

/*! jQuery v1.11.
admdrew
  • 3,790
  • 4
  • 27
  • 39