473,387 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Can I specify that some images load before others?

Greetings,

I'm working on a collection of free puzzle pages that serve as a feed
to sale pages.

My question is whether I can specify that some images load before
others?

If you visit
http://mazes.com/asp-maze/isanamazin...noun=webmaster
you can make a maze that says that you are an amazing webmaster

BUT ... you'll see that the images across the top start loading first.

Could I do something that would delay loading most of these images
until after it has loaded the 26 different GIF images that make up the
maze itself? (and yes, I've debated reducing the number if images
across the top, but since the main purpose of the page is to let people
know that these products are available, I'm not sure if I want to do
that.)

Thanks for any help

John

Dec 1 '05 #1
4 2366
www.MessageMazes.com wrote:
My question is whether I can specify that some images load before
others?
You surely cannot do such things in HTML. What made you expect you
could? (HTML is a poor lonesome data format, not a programming language.)
If you visit
http://mazes.com/asp-maze/isanamazin...noun=webmaster
you can make a maze that says that you are an amazing webmaster
OK. (The option list doesn't include "web author", which would make the
question superficially on-topic here. :-) )
BUT ... you'll see that the images across the top start loading first.
Maybe.
Could I do something that would delay loading most of these images
until after it has loaded the 26 different GIF images that make up the
maze itself?
Maybe.
(and yes, I've debated reducing the number if images
across the top, but since the main purpose of the page is to let people
know that these products are available, I'm not sure if I want to do
that.)


You could reorganize the page so that the <img> elements for the 26 GIF
images appear after the one for the maze image, in HTML source. This
does _not_ guarantee anything. It just might cause the images to be
loaded in that order. It's up to the browser, to the server, to any
proxies and caches between, and the phase of the moon.

The _real_ problems with the page include huge requirements on window
width. If I were you, I would put the maze and its heading on the left,
all the rest (starting with the images) on the right, with images in a
column, not in a row. You could implement this using a trivial two-cell
table, or using CSS, but in either case, you could put the 24 images
after the maze image. If you wish to preserve the current visual
appearance, you would need to use relatively complicated CSS (with
positioning), or JavaScript.

And I would greatly reduce the content of the page, putting most of it
onto static subpages.

In any case, you should add width and height attributes into the <img>
tags to speed up rendering.
Dec 1 '05 #2
"www.MessageMazes.com" wrote:
I'm working on a collection of free puzzle pages that serve as a feed
to sale pages.

My question is whether I can specify that some images load before
others?

If you visit
http://mazes.com/asp-maze/isanamazin...noun=webmaster
you can make a maze that says that you are an amazing webmaster

BUT ... you'll see that the images across the top start loading first.

Could I do something that would delay loading most of these images
until after it has loaded the 26 different GIF images that make up the
maze itself?


No.

But you're going about this the wrong way. Just write a script that
generates the whole maze in a single image. It will look better, load faster
and will probably take up less bandwidth too.

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/

Dec 1 '05 #3
www.MessageMazes.com wrote:

My question is whether I can specify that some images load before
others?
You can specify loading order by the order of occurrence within the
page code. Whether this actually happens is another issue.
Delivery depends on:
1. The browser: how it decides to ask for the images. Usually in the order
listed but there is no guarantee.
2. The network: the data may, and likely does, take different routes to
and from the client (browser) and server (site). Each route has its own
delays.
3. The server: it services requests however it wants. You are not the only
requester. It may delay an earlier request to handle a later one. Or favor
some policy to assure overall throughput that has little to do the request
sequencing.
BUT ... you'll see that the images across the top start loading first.

Don't put those images at the top.
(Well, you could position:absolute the top section and have the code
last in the file. But that may not help much. And has its own problems.)

The suggestion to create a single image, built for progressive loading,
is a better idea.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Dec 1 '05 #4
Philip wrote:
<< But you're going about this the wrong way. Just write a script that
generates the whole maze in a single image. It will look better, load
faster and will probably take up less bandwidth too. >>

I have no idea how to write a script that would generate the whole maze
in a single image. I know how to create BMP files with a basic program,
which I could obviously adapt to server side javascript, like ASP, but
I have no idea how I'd go about creating a single image that would be
fed to the user.

I'd sure love to learn more.

Dec 1 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Roland Hall | last post by:
I read Aaron's article: http://www.aspfaq.com/show.asp?id=2276 re: protecting images from linked to by other sites. There is a link at the bottom of that page that references an interesting...
8
by: Ron Holmes | last post by:
I want to place a background image on a windows form. Is there a way to prevent the image from Tiling without using an image box resized to the size of the form? I am using Visual Studio 2003...
1
by: someone | last post by:
Please bear with me, since I'm an ASP guy, and not a .NET guy. On my site, I dynamically resize/resample images so they're not too large. GetThumbnail resulted in very poor quality, so I create a...
3
by: John Ortt | last post by:
Hi everyone, I posted with the title "Javascript Menu Not Loading Images" last week but I only posted the code as the site was on a corporate Intranet. Thanks to advice on the thread I have...
3
by: Gianluca_Venezia | last post by:
I'm writing a little access-application to distribuite in run-time version. In the test machine, that has the access run-time only, there is a trouble with linked images (*gif or *jpg), while...
3
by: Simon | last post by:
This problem has been driving me mad for months.... Seen a few posts on forums about it but no answers... No mention on MSDN etc. XP Pro SP1, VS.NET (c#) .Net framework 1.1, IIS 5.1. In a...
8
by: Amanda H. | last post by:
Hi guys, I just started switching my site over to tableless css, and I'm using a very lovely, transparent PNG-24 image. I have been trying to figure out if there is any way to replace an image...
27
by: Chris Tomlinson | last post by:
Hi, is there any way to specify the sequence in which images load on a web page? More specifically, here is what we need to achieve: Image1 starts loading first and the browser does not...
0
by: speedcoder | last post by:
hi all, i'm stumped. my applet used to load images over the network. (it was actually designed by someone else.) yes, the applet used to load each image file independently over the network and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.