473,372 Members | 1,037 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 software developers and data experts.

problems with images

hi
i have written a code in javascript and this code create lots of images
at run time.
Whenever page loads all these images get downloaded as 90% of images
are same
So is there any way so that the images doesnt get dowloaded every time
rather if page load has 300 images then only distinct images get
downloaded all other are getting displayed by taking images from cache.
pls suggest me solution as early as possible..

Jan 20 '06 #1
4 1181
VK

Navu wrote:
i have written a code in javascript and this code create lots of images
at run time.
Whenever page loads all these images get downloaded as 90% of images
are same
So is there any way so that the images doesnt get dowloaded every time
rather if page load has 300 images then only distinct images get
downloaded all other are getting displayed by taking images from cache.
pls suggest me solution as early as possible..


You don't need to do anything as it's part of browser caching
mechanics. If you have a picture located say at
http://www.myserver.com/images/image001.jpg then such image will be
loaded only once and next time will be taken from cache.
I'm talking of course about average standard conditions (browser
caching is not disabled, it's a static image and not a server generated
with randomized URL, and not this... and not that... and too long to
list and irrelevant to the common case).

Jan 20 '06 #2
On 2006-01-20, Navu <na**********@gmail.com> wrote:
hi
i have written a code in javascript and this code create lots of images
at run time.
Whenever page loads all these images get downloaded as 90% of images
are same
So is there any way so that the images doesnt get dowloaded every time
rather if page load has 300 images then only distinct images get
downloaded all other are getting displayed by taking images from cache.
pls suggest me solution as early as possible..


ensure that identical images have identical src attributes
that should do it.

Bye.
Jasen
Jan 21 '06 #3
Even the src of images is same
even then if i will refresh the page then it will download every image.

Jan 23 '06 #4
Navu wrote on 23 jan 2006 in comp.lang.javascript:
Even the src of images is same
even then if i will refresh the page then it will download every image.

Please quote what you are replying to.

If you want to post a followup via groups.google.com, don't use the
"Reply" link at the bottom of the article. Click on "show options" at the
top of the article, then click on the "Reply" at the bottom of the article
headers.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jan 23 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Nigel Gomm | last post by:
i have a problem with Mac browsers. As can be seen from the following HTML fragment i have some images that should, when clicked, open up a <div>. This works fine on all window's browsers (that...
13
by: murali | last post by:
Hello everyone, I used absolute positioning with div tag in my website. The page looks cool as long as someone doesn't try to zoom in by increasing the text size (ctrl++ or thru changing font...
1
by: Zeroeffect | last post by:
Hello! I have a database with alot of embedded images. The reason for having the images embedded is security. My problem is that it works fine on my computer, but not on my clients computer....
3
by: Scott | last post by:
Hello, we are having problems displaying non-aspx files (images, style sheets) since we have upgraded to the 1.1 framework when using a cookieless session (sessionID in the url). Check out...
3
by: John Tacke | last post by:
When developing ASP.NET apps using Microsoft's recommended isolated model (develop on your local iis), there are deployement reference problems because the local website is generally one level deeper...
2
by: BluDog | last post by:
Hi I have a created a custom web control called ImageBrowser, extract is below: <Code> #Region "Properties" Public Property Images() As ImageCollection
3
by: Jeff | last post by:
I've been working on an application for a while now that has been giving me some trouble when it comes to working with a picturebox and memory usage. My company deals with digital imaging, so we...
1
by: baroque Chou | last post by:
Thanks for the help available on msdn, I have succesful done the rewrite job. But there are 2 problems arise: 1.when I try to rewrite the url from say: www.yoursite.com/beverages.aspx to...
0
by: David | last post by:
Hello all. I am trying to implement my first server control and have run into two problems that I cannot solve. I need the assistance of someone with more experience. My goal was to create an...
34
by: aljamala | last post by:
I keep getting this error for the given code region (it actually highlights the line with the body tag): line 42 column 1 - Warning: <trisn't allowed in <bodyelements </head> <body...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.