Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GS 3.1 and jQuery
#6
I think the following code taken from http://html5boilerplate.com/ should be used which offers a local copy in case CDN is not available:

Code:
<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline -->
  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
  <script>window.jQuery || document.write('<script src="js/libs/jquery-1.7.1.min.js"><\/script>')</script>

It is likely the user will have visited a site that has cached the CDN version so this will save another download for admin.
Reply


Messages In This Thread
GS 3.1 and jQuery - by hameau - 2012-01-19, 03:57:42
GS 3.1 and jQuery - by mvlcek - 2012-01-19, 04:17:50
GS 3.1 and jQuery - by ccagle8 - 2012-01-19, 05:02:28
GS 3.1 and jQuery - by mvlcek - 2012-01-19, 05:19:31
GS 3.1 and jQuery - by Connie - 2012-01-19, 18:40:58
GS 3.1 and jQuery - by Divita - 2012-01-19, 22:32:29
GS 3.1 and jQuery - by marrco - 2012-02-09, 20:41:15
GS 3.1 and jQuery - by n00dles101 - 2012-02-09, 23:13:42
GS 3.1 and jQuery - by eatons - 2012-02-10, 02:03:18
GS 3.1 and jQuery - by hameau - 2012-02-22, 03:22:52
GS 3.1 and jQuery - by marrco - 2012-02-22, 22:57:42
GS 3.1 and jQuery - by Connie - 2012-02-23, 01:59:27
GS 3.1 and jQuery - by gugu - 2012-03-11, 11:11:05



Users browsing this thread: 1 Guest(s)