Re: How to prevent image load
- From: john_woo <john_woo@xxxxxxxxxx>
- Date: Sat, 22 Dec 2007 06:58:10 -0800 (PST)
On Dec 22, 9:49 am, Thomas 'PointedEars' Lahn <PointedE...@xxxxxx>
wrote:
john_woo wrote:
I'm wondering whether it is possible that makes page load image only
on demand.
is there any idea?
If you add the `img' or `object' element objects to the DOM tree yourself,
or provide a URI for the `src' or `data' attribute of the respective `img'
or `object' elements that does not refer an image resource at first, then
the corresponding images will not load before that takes place or you modify
the `src' or `data' attribute of those elements to refer to an image resource.
In any other way that is not possible, at least not interoperably, as
client-side DOM script support does not even have to be present, let alone
sufficiently enabled.
HTH
PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f806at$ail$1$8300d...@xxxxxxxxxxxxxxxx>
Thanks for the idea.
However if the URI points to a none image source, then the web page
will display a small red box, that doesn't look good.
John
.
- Follow-Ups:
- Re: How to prevent image load
- From: Thomas 'PointedEars' Lahn
- Re: How to prevent image load
- References:
- How to prevent image load
- From: john_woo
- Re: How to prevent image load
- From: Thomas 'PointedEars' Lahn
- How to prevent image load
- Prev by Date: Re: How to prevent image load
- Next by Date: Re: How to prevent image load
- Previous by thread: Re: How to prevent image load
- Next by thread: Re: How to prevent image load
- Index(es):
Relevant Pages
|