Re: Precluding the Downloading of Pictures
- From: Thomas 'PointedEars' Lahn <PointedEars@xxxxxx>
- Date: Fri, 13 Jan 2006 01:41:55 +0100
Randy Webb wrote:
> Thomas 'PointedEars' Lahn said the following on 1/12/2006 3:54 PM:
>> Randy Webb wrote:
>>> Thomas 'PointedEars' Lahn said the following on 1/12/2006 3:01 PM:
>>>> Doug van Vianen wrote:
>>>>> Is there some way in JavaScript to stop the downloading of pictures
>>>>> from a web page?
>>>> No.
>>> Sure there is.
>>>
>>> document.location.href = 'someOtherPage.html';
>>>
>>> I bet that stops the images from loading in the previous page.
>> Sure, but if you think about it, it is highly unlikely that the OP also
>> wants to stop the current document from being loaded.
>
> Not my decision to make.
Providing nonsensical "solutions" such as this is not going to help anyone.
But then I doubt that was your intention; you are merely trolling here,
again. Can't you find some nice bag around to work out your aggressions?
> The question was asked if you could stop the images from loading,
Yes, it was.
> you said No.
Yes, I did.
> I proved you wrong.
No, you did not. You talked about something that has a low probability of
being helpful at all, and then you talked about something that is far too
less reliable to qualify as a solution to the OP's problem.
And *I* _proved_ *you* wrong, every time.
> [...]
>>>Or, loop through the images collection and set all src properties to '';
>>>and it will stop downloading them.
>> You cannot reliably access the DOM tree, including the document.images
>> collection, before the document has finished loading, so you cannot
>> reliably prevent the images from loading.
>
> Put it at the end of the document, do not use the onload. [...]
Makes no difference. Most of the images will already be loaded by then.
>> Which leaves us with: No. (Surprise!)
>
> [...]
> Now, open a page with 200,000 image tags in it. Hit the STOP button on
> the browser. [...]
The OP asked:
| Is there some way in JavaScript to stop the downloading of pictures
| from a web page?
It was not asked:
"Is there some way to prevent pictures of a web page from being displayed?"
HTH & HAND
PointedEars
.
- Follow-Ups:
- Re: Precluding the Downloading of Pictures
- From: Jasen Betts
- Re: Precluding the Downloading of Pictures
- From: Randy Webb
- Re: Precluding the Downloading of Pictures
- References:
- Precluding the Downloading of Pictures
- From: Doug van Vianen
- Re: Precluding the Downloading of Pictures
- From: Thomas 'PointedEars' Lahn
- Re: Precluding the Downloading of Pictures
- From: Randy Webb
- Re: Precluding the Downloading of Pictures
- From: Thomas 'PointedEars' Lahn
- Re: Precluding the Downloading of Pictures
- From: Randy Webb
- Precluding the Downloading of Pictures
- Prev by Date: Re: Sending Variable through URL
- Next by Date: Re: Disable View source
- Previous by thread: Re: Precluding the Downloading of Pictures
- Next by thread: Re: Precluding the Downloading of Pictures
- Index(es):