I have ajax.googleapis.com in my hosts file and a script listening (and dummy-serving) on port 80. When I load http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js directly, Firefox loads it correctly, but when I load http://superuser.com/ (which uses jquery in a <script> element) it doesn't request the script at all (and Superuser shows the "external js failed to load" error). The weird part is that when I remove the hosts entry and load the script from, Firefox does request the script (and successfully load it, although I don't care about that).

How can I get Firefox to correctly load scripts from

(Edit: Happens on any 127.*.*.* and with various sites and (presumably) scripts.)

  • Perhaps it's not loading it because it already loaded it. – David Schwartz May 4 '13 at 12:01
  • @Schwartz, Superuser gives me the "requires external js that failed to load" error (updated question). I'd be okay with Firefox just caching it for no good reason, since it would still have to request it eventually, but this seems to be Firefox thinking the server doesn't exist if it's hosted in 127/8. – David X May 4 '13 at 23:18
  • If it failed to load, then it probably is requesting it. – David Schwartz May 4 '13 at 23:28
  • Except that no connection shows up on the server script output (which does show a connection for url bar loads (and a couple of /favicon.ico loads as well)). – David X May 5 '13 at 0:03
  • Probably a long shot, but are you using a proxy by chance? And if so, when you go into Preferences (or Options), is there anything set that matches your 127.x.x.x pattern under Advanced -> Network -> Settings -> No proxy for? – jerdiggity May 5 '13 at 2:46

It's apparently NoScript's 'Application Boundaries Enforcer', which I just found out exists. Disabling it seems to makes the problem go away. Now I just need to figure out the most malware-hostile way of forcing it not to block jQuery.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.