Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Having an image load after all others

Status
Not open for further replies.

Lunytic

Technical User
Nov 20, 2003
21
0
0
US
First, I appologize if this is a repeat thread, I couldn't find an earlier post like this.

I have a main page that is about 40k except for an animated gif that is made from images from an Ad someone else ran about our site. What I want to do is set the animated gif to load after everything else is loaded (its about 150k, too much for a dialup).

Your help is appriciated, and simplier is even more appricated.

 
As with all interpreted scripts and languages, the code is read top to bottom. So, placing the image at the end of your code will, in most cases, provide you with a solution. However, this is not always the case, especally if the image is on a different server. You might look at pre-loading the image as a solution, also. One thing to consider, if you're going to try to load this image last, think about how many visitors will be waiting around long enough to see it. If it's too slow for dial-up then it's a good bet that even with a broadband connection, users will have moved on. If this huge image HAD to be on the site, I'd be doing all I could to minimize the file size and speed the loading process.

There's always a better way. The fun is trying to find it!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top