Bug 14004 – (╯▔︹▔)╯don't use this file https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js, can't access it in china

Status
RESOLVED
Resolution
WORKSFORME
Severity
enhancement
Priority
P1
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-01-18T16:19:00Z
Last change time
2015-06-12T11:04:20Z
Keywords
pull
Assigned to
nobody
Creator
lplus

Comments

Comment #0 by lplus — 2015-01-18T16:19:08Z
(╯▔︹▔)╯don't use this file https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js, can't access it in china
Comment #1 by blah38621 — 2015-01-20T00:13:32Z
Best solution to this would be to additionally host a copy of jQuery locally, and fall back to that copy if the original isn't loaded: <script>window.jQuery || document.write('<script src="js/libs/jquery-1.7.2.min.js"></script>')</script>
Comment #2 by lplus — 2015-01-20T08:57:14Z
Oh!!!!!!!!!!!!!!!! https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700 http://fonts.googleapis.com/css?family=Open+Sans:400,600,300 http://platform.twitter.com/widgets.js (In reply to Orvid King from comment #1) > Best solution to this would be to additionally host a copy of jQuery > locally, and fall back to that copy if the original isn't loaded: > > <script>window.jQuery || document.write('<script > src="js/libs/jquery-1.7.2.min.js"></script>')</script>
Comment #3 by dlang-bugzilla — 2015-01-26T03:54:57Z
Just for jquery.min.js: https://github.com/D-Programming-Language/dlang.org/pull/847 The other resources are not strictly required, I think.
Comment #4 by dlang-bugzilla — 2015-05-07T18:45:51Z
(In reply to Riki from comment #2) > Oh!!!!!!!!!!!!!!!! > https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js > http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700 > http://fonts.googleapis.com/css?family=Open+Sans:400,600,300 > http://platform.twitter.com/widgets.js jQuery should be fixed. The fonts are ancillary, and hosting the Twitter widget locally won't achieve anything if it won't be able to connect to Twitter to get data. So I think I'll mark this as fixed.
Comment #5 by lplus — 2015-06-12T11:04:20Z
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script type="text/javascript">window.jQuery || document.write('<script src="js/jquery-1.7.2.min.js">\x3C/script>')</script> connect to ajax.googleapis.com first will block long time until time out now, i add "127.0.0.1 ajax.googleapis.com" to /etc/hosts but this is not friend for new users in china why not use jquery in locally host or other free cdn http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.2.min.js