How to load XMLHttpRequest?

How to not load a file that doesn't exist?

  • How can I get a specific site to stop trying to load a specific file? Specifically, how can I get http://notalwaysright.com to quit trying to load an image from Clustrmaps? I'm using Firefox, and am running RequestPolicy, NoScript and Adblock Plus. Whenever I visit NotAlwaysRight, the page never loads fully. By using LiveHTTPHeaders, I've managed to narrow the problem down to an image residing on a Clustrmaps server. Until this image loads (which it never does, even when Firefox is in Safe Mode), the tab is shown as loading. I have to manually click stop to get it to quit attempting. So far, I have tried: 1] Using Adblock Plus to block the image. This just caused about 5,000 requests in the space of a few minutes. I could see the number of blocked attempts shooting up in the Adblock filter list. 2] Allowing/disallowing NAR to request information across the sites with RequestPolicy. This makes no difference. 3] Adding http://www2.clustrmaps.com and http://www3.clustrmaps.com to my HOSTS file, and redirecting them to localhost. 4] Viewing the site in Internet Explorer. The image still doesn't load, according to the status bar at the bottom. Any ideas? How can I get the page to stop trying to load a file that apparently doesn't exist? Or even, how can I get the page to quit loading after x number of seconds?

  • Answer:

    Heh--I came here to suggest #3 on your list. But my next suggestion is to rewrite the page with greasemonkey to remove the link.

Solomon at Ask.Metafilter.Com Visit the source

Was this solution helpful to you?

Other answers

Well I suppose you could use their http://notalwaysright.com/comment-form to bring the issue to their attention. If it were my site I'd be glad of the info.

le morte de bea arthur

#1 and #3 were what I came to suggest, and I'm go to resuggest them with twists. #1b) I believe adblock plus has an option to not even attempt to load the image, rather than just hide it but still load it. Make sure this is turned on. #3b) The HOSTS file takes domain names, not full urls, so try just www2.clustermaps.com without the http:// and #5) There's definitely a way to solve this with a GreaseMonkey userscript. Assuming you aren't a javascript developer, http://platypus.mozdev.org/ will generate a script for you that permanently removes certain parts of pages.

comwiz

Echoing 3b above, but if you want the file to load successfully, you're going to need to run a webserver on localhost to give it a dummy when it asks.

fightorflight

Assuming you aren't a javascript developer, Platypus will generate a script for you that permanently removes certain parts of pages. Sadly, it appears Platypus is not supported anymore (at least not on Firefox 3.5). The most recent update in the changelog notes compatibility with 2.0.

entropic

With #1), the page has Javascript in it that makes it load a "not available" image when it has an error loading the desired image. Unfortunately that image is also hosted on clustrmaps, which causes it to fail, which fires off the javascript, which causes it to fail, which ... If you use the https://addons.mozilla.org/en-US/firefox/addon/4364 add-on to Adblock Plus, you can block the whole <a href ...> statement around the image, including that Javascript. The Adblock Plus rule it just generated for me is : notalwaysright.com##A#clustrMapsLink

Pinback

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.