-
Notifications
You must be signed in to change notification settings - Fork 12.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change jQuery CDN to a China-safe option #1739
Conversation
FWIW I once tested a few of them and jQuery's (maxcdn) was faster at the time. Although my testing method was rather crude and done 3 years ago. http://stackoverflow.com/a/12981092/881551 |
👍 looks good and I assume that the official jQuery source would be the best. |
I forgot about this whole discussion. @alrra? (or whoever else has the keys these days...) |
@roblarsen Can you also update:
Thanks! |
6470fbd
to
c5638cc
Compare
This commit closes h5bp#1737 In countries where googleapis.com is blocked (China and other countries) H5BP is broken out of the box as jQuery will not load until the request times out. This commit changes the default jQuery source to use the jQuery CDN. The jQuery CDN is as fast or faster (by some reckoning) than the Google Hosted Libraries version and is available worldwide. While the chance of hitting the cache lottery is smaller with the jQuery CDN (it's not as ubiquitous as Google) that chance is not enough to override the need to ship working code for everyone in the world.
c5638cc
to
87e3b9f
Compare
👍 Updated |
@roblarsen Thanks! 💜 Merged with some modifications (e.g.: also updated the |
👍 |
In countries where `googleapis.com` is blocked (e.g.: China), HTML5 Boilerplate is broken out of the box as jQuery will not load until the request times out. This commit changes the default jQuery source to use the jQuery CDN as it is as fast or faster (by some reckoning) than the Google Hosted Libraries version and is available worldwide. While the chance of hitting the cache lottery is smaller with the jQuery CDN (it's not as ubiquitous as Google), that chance is not enough to override the need to ship working code for everyone in the world. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Fix h5bp/html5-boilerplate#1737 Close h5bp/html5-boilerplate#1739
In countries where `googleapis.com` is blocked (e.g.: China), HTML5 Boilerplate is broken out of the box as jQuery will not load until the request times out. This commit changes the default jQuery source to use the jQuery CDN as it is as fast or faster (by some reckoning) than the Google Hosted Libraries version and is available worldwide. While the chance of hitting the cache lottery is smaller with the jQuery CDN (it's not as ubiquitous as Google), that chance is not enough to override the need to ship working code for everyone in the world. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Fix h5bp#1737 Close h5bp#1739
Fixes: #1737
China, with with more web users than there are people in the US, blocks googleaplis.com. We really ought to put the "WORLD" back in World Wide Web with a China-friendly option for jQuery.