You are here: Re: Specify loading order of JPGs? « HTML « IT news, forums, messages
Re: Specify loading order of JPGs?

Posted by Brian Cryer on 07/06/06 16:20

"Chris Tomlinson" <anon@anon.com> wrote in message
news:Or9rg.97232$wl.68068@text.news.blueyonder.co.uk...
> "Brian Cryer" <brian.cryer@127.0.0.1.ntlworld.com> wrote in message
> news:oJ-dnXAvaI1UbjHZRVny0Q@pipex.net...
>> "Chris Tomlinson" <anon@anon.com> wrote in message
>> news:G44rg.97072$wl.13343@text.news.blueyonder.co.uk...
>>> Hi, is there any way to specify the sequence in which images load on a
>>> web page?
>>
>> I experimented with this a while back, take a look at
>> http://www.cryer.co.uk/resources/javascript/script3.htm.
>>
>> The bottom line is that you can do it, but you have to use JavaScript. My
>> advice would be not to go that route unless you have a very good reason
>> for it.
>
> Thanks Brian, that looks interesting. Do you think it would work when the
> sliced images are contained within horizontal divs? You can see how we
> are using this at:
> http://www.superhighstreet.com/George-Street-Richmond/

I looked at your page, but I'm still not quite sure I understand what you
mean by "horizontal divs". Wait a minute, do you mean that were you to take
your "highstreet view" and chop it up into a number of individual images and
then load each of those individually? If so, I don't see any reason why it
wouldn't work.

Be aware that to use JavaScript to control the load order of images means
that your visitors who don't have JavaScript enabled probably won't see
anything.

It might be worth reconsidering what you are trying to do. Currently your
"highstreet image" is 368KB, that's big, so I can understand your wanting to
do something about it. Even if you ignore the length of time it takes to
download the image, having the horizontal scroll bar is undesirable. Would
thumbnail views be better? Click the thumbnail to view the shop entrance or
enter? You could also try changing the jpg to use progressive encoding (in
my experience this can make a big difference with gif files although IE
still seems to wait until it has finished loading the jpg before displaying
it regardless of whether its progressive or not).

I know its not what you asked, but your page took a long time to load. It
might help reduce the load time if you move away from using a table to
structure the whole page (I'm not saying don't use tables for structure at
all [although there are plenty who would disagree], but try to avoid having
a table that contains everything on the form). It would be worth your while
also working through the page validation errors (http://validator.w3.org/).
(Sorry, I realise its work in progress and you would probably get to these
points once you've sorted out what to do with the big highstreet image.)
--
Brian Cryer
www.cryer.co.uk/brian

 

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

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