News for hackers. Stuff that matters.
Re:JQuery SSL Certificates Expire by ihsw on Thursday July 31, 2014 @03:32PM (#8116430)
Re:JQuery SSL Certificates Expire by Zikes on Thursday July 31, 2014 @03:36PM (#8116450)
Because you'd still be putting your web site in someone else's hands.

http://www.sslshopper.com/article-ssl-certificate-renewal-ev...

Re:JQuery SSL Certificates Expire by donpdonp on Thursday July 31, 2014 @04:12PM (#8116699)
Or for that matter, why not use any of the other CDNs that host jQuery?

http://cdnjs.com/ http://www.jsdelivr.com/ http://www.asp.net/ajaxlibrary/cdn.ashx

Re:JQuery SSL Certificates Expire by danielweber on Thursday July 31, 2014 @05:28PM (#8117107)
I am some kind of weird mutant because I consider having external javascript on my website to be an embarrassment for anything bigger than a hobby project -- but 99% of the universe behaves otherwise.
Re:JQuery SSL Certificates Expire by UnoriginalGuy on Thursday July 31, 2014 @05:42PM (#8117166)
That's because the other 99% understands how browser caching works. If you use JQuery.com, Google, or Microsoft's CDNs then MOST of the time users won't have to download a JQuery/Boostrap/etc library as the browser would already have an unexpired cache of it.

For example, the OP's link's cache will expire (theoretically) in the year 2079. So if a user visited ANY page that utilises JQuery v1.10.2 they already have it. That is a HUGE win. It is an even huger win for mobile (e.g. for small sites you could cut your network traffic in half, which in turn increases loading speed).

It is also trivial to set it up so the page tries the CDN first and if that fails then grab a local copy e.g.

<script src="//code.jquery.com/jquery-1.10.2.js"></script> <script>window.jQuery || document.write('<script src="lib/jquery-1.10.2.js">\x3C/script>')</script>

Re:JQuery SSL Certificates Expire by nilved on Thursday July 31, 2014 @05:52PM (#8117224)
I fully understand how browser caching works, which is why I know that making the first request to my website immeasurably faster is not worth betraying my user's privacy and my website's stability. At the very least, everybody using CDN-hosted jQuery should also have a fallback copy.
Re:JQuery SSL Certificates Expire by dm2 on Thursday July 31, 2014 @05:47PM (#8117189)
Would just using another CDN be just as safe?
Re:JQuery SSL Certificates Expire by UnoriginalGuy on Thursday July 31, 2014 @06:00PM (#8117263)
No, no particular reasons. It is just the safest fallback. Presumably if a user is even able to run that script (since you yourself are hosting it) the library would also be available (i.e. either both are down or neither).
Re:JQuery SSL Certificates Expire by r1ch on Thursday July 31, 2014 @05:52PM (#8117218)
Some users block the big CDNs for privacy reasons, so local is a safe fallback.
Re:JQuery SSL Certificates Expire by fourstar on Thursday July 31, 2014 @04:24PM (#8116767)
Because not everyone requires jQuery with a script tag. Especially with require/common.js.
Re:JQuery SSL Certificates Expire by StoryboardThat on Thursday July 31, 2014 @04:01PM (#8116629)
Google doesn't host jquery migrate