FS#32959 - {archweb} add fallback for jQuery in case CDN is down
Attached to Project:
Arch Linux
Opened by Marcel Korpel (Marcel-) - Tuesday, 04 December 2012, 11:48 GMT
Last edited by Dan McGee (toofishes) - Friday, 25 January 2013, 21:07 GMT
Opened by Marcel Korpel (Marcel-) - Tuesday, 04 December 2012, 11:48 GMT
Last edited by Dan McGee (toofishes) - Friday, 25 January 2013, 21:07 GMT
|
Details
Description:
At the moment the main page relies solely on Google's CDN to provide jQuery. When that CDN is down (I've seen that once or twice) the page should fall back to a local copy. E.g., in the HTML5 Boilerplate there is: <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> <script>window.jQuery || document.write('<script src="js/vendor/jquery-1.8.3.min.js"><\/script>')</script> |
This task depends upon
Closed by Dan McGee (toofishes)
Friday, 25 January 2013, 21:07 GMT
Reason for closing: Won't implement
Additional comments about closing: This is just a hack around something that doesn't happen very often; our site is more likely to be down than the CDN is. If anything, we'd just serve it from our server or Cloudfront all the time.
Friday, 25 January 2013, 21:07 GMT
Reason for closing: Won't implement
Additional comments about closing: This is just a hack around something that doesn't happen very often; our site is more likely to be down than the CDN is. If anything, we'd just serve it from our server or Cloudfront all the time.
Comment by Marcel Korpel (Marcel-) -
Tuesday, 04 December 2012, 11:49 GMT
Whoops, this should have category 'web sites', sorry.