You are here: Re: Question, need expert help pre-loading images properly (IE + FireFox), thank you :) « HTML « IT news, forums, messages
Re: Question, need expert help pre-loading images properly (IE + FireFox), thank you :)

Posted by Peter Michaux on 10/26/07 00:25

On Oct 25, 11:50 am, SaraLeePer...@gmail.com wrote:
> Dear group,
>
> I am seeking a easy to maintain and more importantly *working* way to
> pre-fetch images, so the pages I develop load smoothly without seeing
> the images kick in flicker as they usually do. Important - I need
> this to work on Internet Explorer 6.0+ and FireFox.
>
> I am presently using at the head of the page,
>
> pic100= new Image;
> pic100.src="./imageme.gif";

I'm rewriting some old preload code to try to reduce server
connections. For some reason, after the window.onload event, each use
of the following code

var img = new Image();
img.src = someUrl;

causes a new connection to the server (Apache). Because many (~100)
images now need to be preloaded, this is causing Apache grief. (I
didn't write the specs on this page. It is legacy and needs a quick
fix until I have time for a real solution.)

If the same many images are just written into the page with <img
src="someUrl"> the same initial connection is being used to get all
images. I believe this is Apache's pipelining feature at work to
conserve connections.

Does anyone know about this situation and is their a standard
solution?

I have a few ideas to try when the server admin is available but I
thought I'd ask since the topic has appeared.

Thanks,
Peter

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация