Should I preload these images

This is a discussion on "Should I preload these images" within the JavaScript Forum section. This forum, and the thread "Should I preload these images are both part of the Program Your Website category.



 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1  
Old Dec 27th, 2007, 14:56
Reputable Member
Join Date: Oct 2007
Location: At my house
Age: 22
Posts: 193
Thanks: 0
Thanked 0 Times in 0 Posts
Should I preload these images

I have heard that you can perload an image allowing it to display faster when the page is loading. How can I do that for my navigation images?


Here is my link: www.adrian-rodriguez.net


Would it be worth it, because there is a slight delay when hovering sometimes?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Dec 27th, 2007, 17:05
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 717
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Should I preload these images

That is a good idea! OK, here's what you do:
HTML: Select all
<script language="javascript">
image1 = new Image();
image1.src = "image1.gif";

image2 = new Image();
image2.src = "image2.gif";

<!-- etc... -->
</script>
Then, insert the correct image sources.

That should do it!
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Dec 27th, 2007, 18:56
Reputable Member
Join Date: Jan 2004
Location: California
Age: 19
Posts: 232
Thanks: 0
Thanked 2 Times in 2 Posts
Re: Should I preload these images

or you can always use CSS, which is even faster. http://www.tutorio.com/tutorial/pure...mage-rollovers

by the way, what is a "christian web designer"?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Dec 27th, 2007, 18:59
Reputable Member
Join Date: Oct 2007
Location: At my house
Age: 22
Posts: 193
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Should I preload these images

Should I stick that in the head of my body?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Dec 27th, 2007, 19:02
Reputable Member
Join Date: Oct 2007
Location: At my house
Age: 22
Posts: 193
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Should I preload these images

I web designer who is Christian. Let's leave that for another topic.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Dec 27th, 2007, 19:19
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,765
Thanks: 0
Thanked 14 Times in 14 Posts
Re: Should I preload these images

Yes, place that JavaScript in your head tags.
__________________
Marc
Staff Manager - Webforumz.com


Want to be a moderator? PM me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you make mp3 preload sequentially? ScottJensen Starting Out 4 Feb 21st, 2007 13:36
preload isn't working Jimmyjazz JavaScript Forum 6 Jan 6th, 2007 04:44
IE6 image preload problem glesig JavaScript Forum 2 Oct 30th, 2006 12:59
Preload Flash Video Paula Flash & Multimedia Forum 23 Oct 13th, 2006 17:48
Free movieclip/preload clip Paula Flash & Multimedia Forum 1 Oct 12th, 2006 19:30


All times are GMT. The time now is 19:27.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42