Recently (last two days) I have been getting the following message at the top of every page I visit on Stack Overflow and Meta Stack Overflow.
Stack Overflow requires external JavaScript from another domain, which is blocked or failed to load.
As a result of this message, the following functionality is unavailable.
- Adding comments.
- Voting.
- Controls (image, code buttons, etc.) missing from message posting form and the preview does not appear.
- Automatic recognition that you are 'not a bot'.
- Notify daily of new answers option.
- ...
At first I thought this might be due to a recent Firefox update (Firefox 5.0), but a quick test has Chrome 12.0.742.100 failing with the exact same message. No other changes are known to have happened to this machine since the site began to fail.
The only thing I can guess that might be going wrong is that the (wireless) Internet connection is taking too long to load the pages and hitting some kind of 'time-out'. The problem with that theory is that other sites (e.g. Wikipedia) seem to be loading about as fast as I recall in the past.
How can this be fixed?
I cannot see any closely similar posts, looking through such questions as:
- Stack Overflow does not render correctly from work
- “requires external JavaScript from another domain” error with googleapis ENABLED
- “Stack Overflow requires external JavaScript from another domain…” error after editing my answer
- Stack Overflow requires external JavaScript from another domain, which is blocked or failed to load. (ChromeOS - Cr-48)
Update based on answer & comment
As mentioned above, I am unable to post comments.
@Jeff Atwood: I downloaded Opera 11.11 (7,648,768 bytes in around 90 seconds (1)) and installed with standard options (except 'Use Opera as my default browser'). I got the same error as Firefox and Chrome.
- Which suggests that it is not the connection speed that is the problem.
@Rick Sladkey: I had a look at the thread and am sure no new plug-ins have been installed, and no functionality disabled in Firefox, Chrome and (now) Opera.
Update 2 - Fiddler results
@Rick Sladkey: I suggested throwing Fiddler at it. I'm not sure I can interpret the results, but hopefully others can. It is showing output suspiciously like as described.
The data produced when visiting Stack Overflow using first Firefox and then Opera.
Here is a copy/paste of the textual data.
# Result Protocol Host URL Body Caching Content-Type Process Comments Custom
1 200 HTTP www.fiddler2.com /fiddler2/updatecheck.asp?isBeta=False 309 private text/plain fiddler:5012
2 200 HTTP stackoverflow.com /users/418556/andrew-thompson 13,870 public, max-age=120 Expires: Sat, 25 Jun 2011 07:56:49 GMT text/html; charset=utf-8 firefox:5264
3 504 HTTP ajax.googleapis.com /ajax/libs/jquery/1.5.2/jquery.min.js 512 text/html; charset=UTF-8 firefox:5264
4 304 HTTP www.gravatar.com /avatar/a1ab0af4997654345d7a949877f8037e?s=128&d=identicon&r=PG 0 max-age=300 Expires: Sat, 25 Jun 2011 07:59:51 GMT firefox:5264
5 204 HTTP pixel.quantserve.com /pixel;r=2062096692;fpan=0;fpa=P0-1054713200-1281019855865;ns=0;url=http%3A%2F%2Fstackoverflow.com%2Fusers%2F418556%2Fandrew-thompson;ref=http%3A%2F%2Fstackoverflow.com%2Fusers%2F418556%2Fandrew-thompson%3Ftab%3Dresponses;ce=1;je=1;sr=1920x1080x24;enc=n;ogl=;dst=1;et=1308988487554;tzo=-600;a=p-c1rF4kxgLUzNc 0 private, no-cache, no-store, proxy-revalidate Expires: Fri, 04 Aug 1978 12:00:00 GMT firefox:5264
6 200 HTTP www.google-analytics.com /__utm.gif?utmwv=4.9.5&utms=2&utmn=1079358679&utmhn=stackoverflow.com&utmcs=UTF-8&utmsr=1920x1080&utmsc=24-bit&utmul=en-us&utmje=1&utmfl=10.3%20r181&utmdt=User%20Andrew%20Thompson%20-%20Stack%20Overflow&utmhid=148452394&utmr=0&utmp=%2Fusers%2F418556%2Fandrew-thompson&utmac=UA-5620270-1&utmcc=__utma%3D140029553.797909358.1281019856.1308977962.1308987171.2273%3B%2B__utmz%3D140029553.1308804124.2259.31.utmcsr%3Dgoogle%7Cutmccn%3D(organic)%7Cutmcmd%3Dorganic%7Cutmctr%3Dbase64%2520javascript%2520encode%3B&utmu=q~ 35 private, no-cache, no-cache=Set-Cookie, proxy-revalidate Expires: Wed, 19 Apr 2000 11:43:00 GMT image/gif firefox:5264
7 200 HTTP CONNECT mail.google.com:443 0 firefox:5264
8 200 HTTP ocsp.thawte.com / 1,085 max-age=506567, public, no-transform, must-revalidate Expires: Fri, 01 Jul 2011 04:37:54 GMT application/ocsp-response firefox:5264
9 200 HTTP CONNECT www.pizbi.com:443 0 firefox:5264
10 200 HTTP CONNECT www.fozzy-networks.com:443 0 firefox:5264
11 200 HTTP sitecheck2.opera.com /?host=meta.stackoverflow.com&hdn=6yViupq2UksAQGeZBmwp3g== 410 max-age=7200 text/xml opera:432
12 504 HTTP ajax.googleapis.com /ajax/libs/jquery/1.5.2/jquery.min.js 512 text/html; charset=UTF-8 opera:432
13 204 HTTP meta.stackoverflow.com /posts/96373/ivc/aff0 0 private opera:432
14 204 HTTP pixel.quantserve.com /pixel;r=214885247;fpan=0;fpa=P0-940893504-1308985983644;ns=0;url=http%3A%2F%2Fmeta.stackoverflow.com%2Fquestions%2F96373%2Fexternal-js-failed-to-load;ref=;ce=1;je=1;sr=1920x1080x32;enc=n;ogl=;dst=1;et=1308988595022;tzo=-600;a=p-c1rF4kxgLUzNc 0 private, no-cache, no-store, proxy-revalidate Expires: Fri, 04 Aug 1978 12:00:00 GMT opera:432
15 200 HTTP www.google-analytics.com /__utm.gif?utmwv=4.9.5&utms=1&utmn=619136352&utmhn=meta.stackoverflow.com&utmcs=utf-8&utmsr=1920x1080&utmsc=32-bit&utmul=en&utmje=1&utmfl=10.3%20r181&utmdt=External%20JS%20failed%20to%20load.%20-%20Meta%20Stack%20Overflow&utmhid=1467610090&utmr=-&utmp=%2Fquestions%2F96373%2Fexternal-js-failed-to-load&utmac=UA-5620270-4&utmcc=__utma%3D128717072.1036309573.1308985983.1308985983.1308988595.2%3B%2B__utmz%3D128717072.1308985983.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B&utmu=q~ 35 private, no-cache, no-cache=Set-Cookie, proxy-revalidate Expires: Wed, 19 Apr 2000 11:43:00 GMT image/gif opera:432
For the screenshots, see http://pscode.org/test/screenshot/FiddlerOnSO.png. Note that Firefox had pages that made further requests within that time, but I scrolled back to the top for the first results as shown above. I was tempted to hot-link to the img
at my site (since I cannot use the image button), but decided not to try.
Update 3 - Proxy Server/More on 504
@sth: "Are you using a proxy server?"
Not at the client side, no.
I'm doing all this from a private development machine running Windows 7 with UAC enabled. Since it is a machine I alone control and have access to. I have no reason to install a proxy server (now that I checked what it means at Wikipedia).
Can it be run on the side of my ISP?
The only reason I ask is that my ISP is Australian based, and I heard vague reports that there was a 'secret' black-list of domains that Oz ISPs were supposed to protect the Oz-pop.
from. Not that I can imagine how JavaScript at googleapis.com
got on the list.
BTW - rather remiss of me not to post the detail of that 504 message. I correct that now. I was hoping it might identify the server that was timing out, but I don't see that information amongst the detail.
Request Count: 1
Bytes Sent: 417 (headers:417; body:0)
Bytes Received: 638 (headers:126; body:512)
ACTUAL PERFORMANCE
--------------
ClientConnected: 01:27:12.659
ClientBeginRequest: 01:27:12.758
ClientDoneRequest: 01:27:12.758
Gateway Determination: 0ms
DNS Lookup: 248ms
TCP/IP Connect: 259ms
HTTPS Handshake: 0ms
ServerConnected: 01:27:13.266
FiddlerBeginRequest: 01:27:13.266
ServerGotRequest: 01:27:13.266
ServerBeginResponse: 00:00:00.000
ServerDoneResponse: 01:27:13.455
ClientBeginResponse: 01:27:13.455
ClientDoneResponse: 01:27:13.465
Overall Elapsed: 00:00:00.7070405
RESPONSE CODES
--------------
HTTP/504: 1
RESPONSE BYTES (by Content-Type)
--------------
text/html: 512
~headers~: 126
ESTIMATED WORLDWIDE PERFORMANCE
--------------
The following are VERY rough estimates of download times when hitting servers based in WA, USA.
US West Coast (Modem - 6KB/sec)
---------------
Round trip cost: 0.10s
Elapsed Time: 0.10s
Japan / Northern Europe (Modem)
---------------
Round trip cost: 0.15s
Elapsed Time: 0.15s
China (Modem)
---------------
Round trip cost: 0.45s
Elapsed Time: 0.45s
US West Coast (DSL - 30KB/sec)
---------------
Round trip cost: 0.10s
Elapsed Time: 0.10s
Japan / Northern Europe (DSL)
---------------
Round trip cost: 0.15s
Elapsed Time: 0.15s
China (DSL)
---------------
Round trip cost: 0.45s
Elapsed Time: 0.45s
================
Learn more about HTTP performance at http://www.fiddler2.com/redir/?id=HTTPPERF
8 200 HTTP ocsp.thawte.com / 1,085 max-age=506567, public, no-transform, must-revalidate Expires: Fri, 01 Jul 2011 04:37:54 GMT application/ocsp-response firefox:5264
The HTTPS protocol cert for jquery.min.js is not able to be validated. Firefox has an option not to treat the cert as invalid if the OCSP server connection fails. Set security.OCSP.require to false.