many images delay even when cached

C

cosmic foo

I have a page with about 100 images of about 10k each.
where a typical img tag looks like this,
<img src="item001.jpg" height="70" alt="" onMouseOver="showPic(this)"
border="0">
Not all the images need to be viewed at once, depending on what category is
selected, only about 10 images are seen at any one time.
I hide and show categories of images by setting a div container
display:none/block or visibility:hidden/visible.

Even though the images are cached on the client, when the page loads in ie,
there is still a few seconds delay while it counts down until there are no
items remaining.
In firefox there is the same delay but instead of counting down it just says
'waiting for..'

From what i understand, the way to get around this delay when loading is not
to set the src of the image tags until later, when the images need to be
viewed (using javascript).
That's not a problem and i have tried it, and it works, but now (for some
reason) the browser forgets that the images have been cached whenever the
user returns to the site, and has to download the images from the server,
the first time a particular category of images is viewed.
This, i presume, is happening because the src attribute is no longer
hard-coded in the source, and the browser cannot associate an entry in the
cache with the src of an image that is set via javascript?

So it looks like the only solution may be to generate the html on the fly,
when it is needed, with the src intact, or to use frames to get the html
when it is needed.

Am i missing something here?
Thanks.
 
J

Jedi Fans

cosmic said:
I have a page with about 100 images of about 10k each.
where a typical img tag looks like this,
<img src="item001.jpg" height="70" alt="" onMouseOver="showPic(this)"
border="0">
Not all the images need to be viewed at once, depending on what category is
selected, only about 10 images are seen at any one time.
I hide and show categories of images by setting a div container
display:none/block or visibility:hidden/visible.

Even though the images are cached on the client, when the page loads in ie,
there is still a few seconds delay while it counts down until there are no
items remaining.
In firefox there is the same delay but instead of counting down it just says
'waiting for..'

From what i understand, the way to get around this delay when loading is not
to set the src of the image tags until later, when the images need to be
viewed (using javascript).
That's not a problem and i have tried it, and it works, but now (for some
reason) the browser forgets that the images have been cached whenever the
user returns to the site, and has to download the images from the server,
the first time a particular category of images is viewed.
This, i presume, is happening because the src attribute is no longer
hard-coded in the source, and the browser cannot associate an entry in the
cache with the src of an image that is set via javascript?

So it looks like the only solution may be to generate the html on the fly,
when it is needed, with the src intact, or to use frames to get the html
when it is needed.

Am i missing something here?
Thanks.
please dont cross post
 
C

cosmic foo

Jedi Fans said:
dont post the same or similar message to multi newsgroups, as it wastes
peoples time...

why, do you think everyone reads both html groups?
 
J

Jedi Fans

cosmic said:
Jedi Fans said:
cosmic said:
"Jedi Fans" <"news[at]jedifans[--=dot==-]com"> wrote in message
cosmic foo wrote:
I have a page with about 100 images of about 10k each.
where a typical img tag looks like this,
<img src="item001.jpg" height="70" alt="" onMouseOver="showPic(this)"
border="0">
Not all the images need to be viewed at once, depending on what category
is
selected, only about 10 images are seen at any one time.
I hide and show categories of images by setting a div container
display:none/block or visibility:hidden/visible.

Even though the images are cached on the client, when the page loads in
ie,
there is still a few seconds delay while it counts down until there are
no
items remaining.
In firefox there is the same delay but instead of counting down it just
says
'waiting for..'

From what i understand, the way to get around this delay when loading is
not
to set the src of the image tags until later, when the images need to be
viewed (using javascript).
That's not a problem and i have tried it, and it works, but now (for
some
reason) the browser forgets that the images have been cached whenever
the
user returns to the site, and has to download the images from the
server,
the first time a particular category of images is viewed.
This, i presume, is happening because the src attribute is no longer
hard-coded in the source, and the browser cannot associate an entry in
the
cache with the src of an image that is set via javascript?

So it looks like the only solution may be to generate the html on the
fly,
when it is needed, with the src intact, or to use frames to get the html
when it is needed.

Am i missing something here?
Thanks.



please dont cross post
?
dont post the same or similar message to multi newsgroups, as it wastes
peoples time...

why, do you think everyone reads both html groups?
if ur gonna do it adress both newsgroups at same time, so answers in one
are answered in another... do this by in newsgroup field [or w/e] in new
message "alt.html, other.newsgroup" w/o quotes
 
C

cosmic foo

Jedi Fans said:
cosmic said:
Jedi Fans said:
cosmic foo wrote:
"Jedi Fans" <"news[at]jedifans[--=dot==-]com"> wrote in message
cosmic foo wrote:
I have a page with about 100 images of about 10k each.
where a typical img tag looks like this,
<img src="item001.jpg" height="70" alt="" onMouseOver="showPic(this)"
border="0">
Not all the images need to be viewed at once, depending on what category
is
selected, only about 10 images are seen at any one time.
I hide and show categories of images by setting a div container
display:none/block or visibility:hidden/visible.

Even though the images are cached on the client, when the page loads in
ie,
there is still a few seconds delay while it counts down until there are
no
items remaining.
In firefox there is the same delay but instead of counting down it just
says
'waiting for..'

From what i understand, the way to get around this delay when
loading
is
not
to set the src of the image tags until later, when the images need
to
be
viewed (using javascript).
That's not a problem and i have tried it, and it works, but now (for
some
reason) the browser forgets that the images have been cached whenever
the
user returns to the site, and has to download the images from the
server,
the first time a particular category of images is viewed.
This, i presume, is happening because the src attribute is no longer
hard-coded in the source, and the browser cannot associate an entry in
the
cache with the src of an image that is set via javascript?

So it looks like the only solution may be to generate the html on the
fly,
when it is needed, with the src intact, or to use frames to get the html
when it is needed.

Am i missing something here?
Thanks.



please dont cross post
?




dont post the same or similar message to multi newsgroups, as it wastes
peoples time...

why, do you think everyone reads both html groups?
if ur gonna do it adress both newsgroups at same time, so answers in one
are answered in another... do this by in newsgroup field [or w/e] in new
message "alt.html, other.newsgroup" w/o quotes

why did you say 'please dont cross post'?
 
J

Jedi Fans

cosmic foo wrote:

please dont cross post
?




dont post the same or similar message to multi newsgroups, as it wastes
peoples time...
why, do you think everyone reads both html groups?
if ur gonna do it adress both newsgroups at same time, so answers in one
are answered in another... do this by in newsgroup field [or w/e] in new
message "alt.html, other.newsgroup" w/o quotes

why did you say 'please dont cross post'?


as you posted the same question to two different newsgroups where in one
you may have gotten a reply which solved it and in the other you may not
have gotten a reply until much later on, but since it was already solved
it wasted the person's time in the second newsgroup... whereis if you
do the alt.html, other.newsgroup thing everybody sees all replies
 
C

cosmic foo

Jedi Fans said:
cosmic foo wrote:

please dont cross post
?




dont post the same or similar message to multi newsgroups, as it wastes
peoples time...
why, do you think everyone reads both html groups?


if ur gonna do it adress both newsgroups at same time, so answers in one
are answered in another... do this by in newsgroup field [or w/e] in new
message "alt.html, other.newsgroup" w/o quotes

why did you say 'please dont cross post'?


as you posted the same question to two different newsgroups where in one
you may have gotten a reply which solved it and in the other you may not
have gotten a reply until much later on, but since it was already solved
it wasted the person's time in the second newsgroup... whereis if you
do the alt.html, other.newsgroup thing everybody sees all replies

say please and maybe i might
 
C

cosmic foo

Jedi Fans said:
Jedi said:
cosmic said:
"Jedi Fans" <"news[at]jedifans[--=dot==-]com"> wrote in message
cosmic foo wrote:

<SNIP>

as you posted the same question to two different newsgroups where in one
you may have gotten a reply which solved it and in the other you may not
have gotten a reply until much later on, but since it was already solved
it wasted the person's time in the second newsgroup... whereis if you
do the alt.html, other.newsgroup thing everybody sees all replies

say please and maybe i might

what did i say in my first post??
moreover its just plain common curtosy

a wanna-be like yourself should learn to spell first
 
R

Richard Rundle

Jedi Fans said:
cosmic foo wrote:

please dont cross post
?




dont post the same or similar message to multi newsgroups, as it wastes
peoples time...
why, do you think everyone reads both html groups?


if ur gonna do it adress both newsgroups at same time, so answers in one
are answered in another... do this by in newsgroup field [or w/e] in new
message "alt.html, other.newsgroup" w/o quotes

why did you say 'please dont cross post'?


as you posted the same question to two different newsgroups where in one
you may have gotten a reply which solved it and in the other you may not
have gotten a reply until much later on, but since it was already solved
it wasted the person's time in the second newsgroup... whereis if you
do the alt.html, other.newsgroup thing everybody sees all replies


But that's exactly what a "cross post" is!. What you mean is (and is good
advice) "don't multi post".
 
J

Jedi Fans

cosmic said:
Jedi Fans said:
Jedi said:
cosmic foo wrote:
"Jedi Fans" <"news[at]jedifans[--=dot==-]com"> wrote in message
cosmic foo wrote:

<SNIP>

as you posted the same question to two different newsgroups where in one
you may have gotten a reply which solved it and in the other you may not
have gotten a reply until much later on, but since it was already solved
it wasted the person's time in the second newsgroup... whereis if you
do the alt.html, other.newsgroup thing everybody sees all replies
say please and maybe i might
what did i say in my first post??
moreover its just plain common curtosy

a wanna-be like yourself should learn to spell first
excuse me? i am not disrespecting anybody by my spelling, whereas you
are by not following netiquette...
 
B

Blinky the Shark

cosmic said:
Jedi Fans said:
cosmic foo wrote:


if ur gonna do it adress both newsgroups at same time, so answers in one
are answered in another... do this by in newsgroup field [or w/e] in new
message "alt.html, other.newsgroup" w/o quotes
why did you say 'please dont cross post'?
as you posted the same question to two different newsgroups where in one
you may have gotten a reply which solved it and in the other you may not
have gotten a reply until much later on, but since it was already solved
it wasted the person's time in the second newsgroup... whereis if you
do the alt.html, other.newsgroup thing everybody sees all replies
say please and maybe i might

You misunderstand. Be courteous or be ignored.
 
D

dorayme

From: Jedi Fans said:
dont post the same or similar message to multi newsgroups, as it wastes
peoples time...

Jedi, if what you have to advise is not to cross post (fair enough), the
whole text of the OP is not needed, please edit...

dorayme
 
D

dorayme

From: "cosmic foo said:
I have a page with about 100 images of about 10k each...
snip
Am i missing something here?

yes, I think so. Probably you are overestimating the need for so many images
on the same page. Why have to cope with the load and complexity? Design more
simply, use links and a good navigation system. Use more pages. Give choice.
You seem to me to be going down a bad road of railroading too much into one
page...

dorayme
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top