![]() |
|
#1
|
||||
|
||||
Preloading background image in display: none objectsI have the following in the stylesheet for my website:
CSS Code:
My question is, will that background image be preloaded, so that it appears instantly when I make the object visible, or do I need to use some javascript to preload it? If I do need to use javascript to preload it, is this all I need to do? Code:
__________________
www.blake-foster.com |
||||
|
#2
|
|||
|
|||
Re: Preloading background image in display: none objectsIt should load since it is in the CSS - whether or not it is displayed. There are a number of people that use something like this to pre-load some images instead of JavaScript.
|
|
#3
|
|||
|
|||
Re: Preloading background image in display: none objectsBe careful when you do this if you use a lot of a lot of background images and you've only got one style sheet that's used across the entirety of your site. The first page a visitor arrives at will then load up every image.
|
Recent GIDBlog
Toyota - 2009 May Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to create or display an image | Unit1 | C Programming Language | 1 | 27-Sep-2006 03:18 |
| need help with a console menu system | BullBuchanan | C++ Forum | 6 | 20-Aug-2006 15:46 |
| lining seamless background up with image in dreamweaver? (pls hlp) | sanspolanco | Web Design Forum | 2 | 24-Aug-2005 21:17 |
| GIM gidedit - a fltk fluid resize project | cable_guy_67 | FLTK Forum | 2 | 01-Jun-2005 16:00 |
| Checking source codes of image, audio and video files | onauc | C Programming Language | 5 | 26-Feb-2005 22:47 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The