D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 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
Summary: (╯▔︹▔)╯don't use this file https://ajax.googleapis.com/ajax/libs/jquery/1.7.2...
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: dlang.org (show other issues)
Version: D2
Hardware: All All
: P1 enhancement
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2015-01-18 16:19 UTC by Riki
Modified: 2015-06-12 11:04 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Riki 2015-01-18 16:19:08 UTC
(╯▔︹▔)╯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 Orvid King 2015-01-20 00:13:32 UTC
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 Riki 2015-01-20 08:57:14 UTC
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 Vladimir Panteleev 2015-01-26 03:54:57 UTC
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 Vladimir Panteleev 2015-05-07 18:45:51 UTC
(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 Riki 2015-06-12 11:04:20 UTC
<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