473,385 Members | 1,615 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,385 software developers and data experts.

FAQ Topic - Why are my Rollovers so slow?

-----------------------------------------------------------------------
FAQ Topic - Why are my Rollovers so slow?
-----------------------------------------------------------------------

Images are cached by the browser depending on the headers sent by
the server. If the server does not send sufficient information
for the browser to decide the image is cacheable, the browser
will check if the image has been updated everytime you change the
src of an image (in some user settings). To overcome this you
must send suitable headers.

http://www.mnot.net/cache_docs/
===
Postings such as this are automatically sent once a day. Their
goal is to answer repeated questions, and to offer the content to
the community for continuous evaluation/improvement. The complete
comp.lang.javascript FAQ is at http://www.jibbering.com/faq/.
The FAQ workers are a group of volunteers.

Nov 9 '06 #1
3 1653

FAQ server wrote:
-----------------------------------------------------------------------
FAQ Topic - Why are my Rollovers so slow?
-----------------------------------------------------------------------

Images are cached by the browser depending on the headers sent by
the server. If the server does not send sufficient information
for the browser to decide the image is cacheable, the browser
will check if the image has been updated everytime you change the
src of an image (in some user settings). To overcome this you
must send suitable headers.

http://www.mnot.net/cache_docs/
If the rollovers are slow on the first time they are used then
pre-caching the necessary images could help.

Nov 9 '06 #2
Peter Michaux wrote:
FAQ server wrote:
>-----------------------------------------------------
FAQ Topic - Why are my Rollovers so slow?
-----------------------------------------------------

Images are cached by the browser depending on the headers
sent by the server. If the server does not send sufficient
information for the browser to decide the image is cacheable,
the browser will check if the image has been updated
everytime you change the src of an image (in some user
settings). To overcome this you must send suitable headers.

http://www.mnot.net/cache_docs/

If the rollovers are slow on the first time they are used then
pre-caching the necessary images could help.
If the images are already cached by the browsers then scripted
pre-loading (if it does anything at all) will only make a difference when
the site is first visited, or when re-visited after the browser's cache
has been emptied. Considered and planned configuration of the HTTP
headers sent with resources (particularly as they relate to caching) is
the most significant contributor to an efficient and effective web site.
In comparison scripted approaches pail into barely significant 'hacks'.

Richard.
Nov 10 '06 #3

FAQ server wrote:
-----------------------------------------------------------------------
FAQ Topic - Why are my Rollovers so slow?
-----------------------------------------------------------------------

Images are cached by the browser depending on the headers sent by
the server. If the server does not send sufficient information
for the browser to decide the image is cacheable, the browser
will check if the image has been updated everytime you change the
src of an image (in some user settings). To overcome this you
must send suitable headers.

http://www.mnot.net/cache_docs/
It might also be worth mentioning that roll-overs based on sliding
images don't need to modify the src attribute at all. They can also be
implemented using pure CSS, and thereby become independent of script
support.
--
Rob

Nov 10 '06 #4

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

Similar topics

2
by: Frances Del Rio | last post by:
Hi, I while back I was having a problem with rollovers, even though I do them in a very conventional way: function roll(i) { document.src = eval(i + "_roll.src") } // in which value passed...
3
by: Norman Swartz | last post by:
Rollovers on a web page I created were instantaneous on my computer when the page was loaded directly from my hard drive, but were painfully slow when loaded from the web. However, on another...
7
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - Why are my Rollovers so slow? ----------------------------------------------------------------------- Images...
1
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - Why are my rollovers so slow? ----------------------------------------------------------------------- Images...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.