473,396 Members | 1,892 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,396 software developers and data experts.

Impact of images on load performance

Hi All,

A partner of mine has been charged with identifying a performance /
load problem currently experienced on one of our websites.

I'm thinking it may be a combination of HTML formatting and syntax
along with the number of images (<img> tags) being used on a single
page. The problems seem to persist around IE (5.0+ on multiple win OS),
however FF 1.0 sometimes chokes but usually clears once the images are
loaded.

If I understand correctly, IE will wait until the contents of a table
are loaded/rendered before displaying the table. This could certainly
explain what we are experiencing - I'm looking for a consistant
explanation of a random behavior.

I reviewed some of the source, and at times there are 60+ <img> tags on
a single file read by the browser. Most of these img tags are 'spacer'
images but imgs all the same. Does anyone know the impact of img's on a
web page - i.e. the number of http connections, etc. Any help is
appreciated.

Thanks,
Ben

Jul 23 '05 #1
5 3287
Ben Long wrote:

A partner of mine has been charged with identifying a performance /
load problem currently experienced on one of our websites.

I'm thinking it may be a combination of HTML formatting and syntax
along with the number of images (<img> tags) being used on a single
page. The problems seem to persist around IE (5.0+ on multiple win OS),
however FF 1.0 sometimes chokes but usually clears once the images are
loaded.

It depends:
- on the number and size of the images. Obviously, large images take
longer to download. A lot of small images can time-consuming too if they
are all different and the server is busy. Most browsers are smart enough
not to repeatedly download the same file.
- on whether the <img> tags have width and height attributes. Without
width and height, the browser must wait until an image is fully downloaded
before discovering its size. This slows down layout.
- on how images are scaled. Are large images scaled down to a smaller size
using width and height? If so, bad plan.
- on how heavily tables are used for layout. It's somewhat browser
dependent but generally tables are rendered late, when enough of the page
is received to guess at the sizes for the rows and columns.
--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jul 23 '05 #2
Ben Long wrote:
If I understand correctly, IE will wait until the contents of a table
are loaded/rendered before displaying the table. This could certainly
explain what we are experiencing - I'm looking for a consistant
explanation of a random behavior.
Table-based layout? Tsk.
I reviewed some of the source, and at times there are 60+ <img> tags on
a single file read by the browser. Most of these img tags are 'spacer'
images but imgs all the same. Does anyone know the impact of img's on a
web page - i.e. the number of http connections, etc. Any help is
appreciated.


One connection per file. Sounds to me like you need to redesign the page
not to use image slicing and tables.

A URL would help us diagnose further.

--
Mark.
http://tranchant.plus.com/
Jul 23 '05 #3
Mark Tranchant <ma**@tranchant.plus.com> writes:
One connection per file. Sounds to me like you need to redesign the
page not to use image slicing and tables.


It isn't likely to be one connection per file. Few browsers or servers
are stuck with HTTP 1.0. Since HTTP 1.1 it's been possible to serve
multiple requests over a single connection. If the image files are
reasonable size and the IMG tags have WIDTH and HEIGHT attributes, the
page should load quickly.

I'm looking at a page on ourdoings.com that has 12 50k images, but loads
quickly. Then again, they all get WIDTH and HEIGHT tags, and I don't
use table layout. Additionally, even the dynamic pages use persistent
connections.

--

http://ourdoings.com/ Let your digital photos organize themselves.
Sign up today for a 7-day free trial.
Jul 23 '05 #4
Thanks - table based is bad - I know. It's not image sliced layout but
the navigation is heavily image based. I've already recommended they
change it. Thanks for the feedback.

Jul 23 '05 #5
DU
Ben Long wrote:
Hi All,

A partner of mine has been charged with identifying a performance /
load problem currently experienced on one of our websites.

I'm thinking it may be a combination of HTML formatting and syntax
along with the number of images (<img> tags) being used on a single
page. The problems seem to persist around IE (5.0+ on multiple win OS),
however FF 1.0 sometimes chokes but usually clears once the images are
loaded.

If I understand correctly, IE will wait until the contents of a table
are loaded/rendered before displaying the table.
Yes and no. Usually, IE will wait until the contents of the table is
loaded/rendered before displayin the table unless... table-layout: fixed
is used and is accordingly triggered. See the specs on this.

This could certainly explain what we are experiencing - I'm looking for a consistant
explanation of a random behavior.

I reviewed some of the source, and at times there are 60+ <img> tags on
a single file read by the browser. Most of these img tags are 'spacer'
images but imgs all the same.
Then they each need a single http connection.

Does anyone know the impact of img's on a web page - i.e. the number of http connections, etc. Any help is
appreciated.

Thanks,
Ben


The impact of images is usually big for 2 sorts of reasons:
- size of each individual image files; that's one reason why PNG images
are preferred
- number of each images which requires a single http connection to the
server.

There is also a possible 3rd reason why and it's given by Microsoft:

{ When you run Internet Explorer, the Internet Explorer cache is not
used as you expect when you run innerHTML code to insert the same image
multiple times. Notice the following code samples:

myDiv1.innerHTML = "<IMG SRC='image.gif'>"

myDiv2.innerHTML = "<IMG SRC='image.gif'>"

The preceding code results in sending two GET requests to retrieve
the Image.gif file in Internet Explorer 6.0. Three GET requests are sent
to retrieve the Image.gif file in Internet Explorer 5.5. Your
expectation is that the Web server would be hit only one time.

STATUS
This behavior is by design.
}
excerpt from
http://support.microsoft.com/default...b;en-us;319546

I recommend to avoid spacer images, images of text (very bad) and table
design (in particular nested tables).

DU
--
The site said to use Internet Explorer 5 or better... so I switched to
Mozilla 1.7.5 :)
Jul 23 '05 #6

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

Similar topics

0
by: Ben Long | last post by:
Hi All, A partner of mine has been charged with identifying a performance / load problem currently experienced on one of our websites. I'm thinking it may be a combination of HTML formatting...
4
by: Kevin Myers | last post by:
Hello, Please forgive my reposting of this note with hopefully a more relevant subject line. On an Access 2000 form under Windows 2000 I would like to use a Kodak Image Edit Control to...
3
by: mraj | last post by:
Hello... I am new to C#. My requirement is that, I will receive over 100s of images from the network to local machine and display these images on an image viewer one by one on mouse scroll. To...
16
by: Michal Hlavac | last post by:
Hello, I am working on web portal. There are some ads. We have about 200 000 ads. Every ad have own directory called ID, where is 5 subdirectories with various sizes of 5 images. Filesystem...
0
by: boris.unterer | last post by:
When I use both managed .NETCF and unmanaged C++ code - what is the impact on the real time behaviour? In other words - does a system that runs with the load of embedded CLR have an impact upon...
2
by: mjf | last post by:
Hello, I have a table in the database that has a BLOB field to store images, which is usually more than 1MB per record. There are currently near 9000 records in it, which means the table is...
5
by: lister | last post by:
Hi all, I have a fairly diverse range of data that I want to cache in the session rather than pulling it from the database on every page refresh. The problem is is that it seems that PHP...
14
by: Sugandh Jain | last post by:
Hi, The warning from Microsoft.Performance Code Analysis check that, its not required to initialize numeric variables to zero, boolean to false and object to null is a good one because CLR does...
7
by: Keith Hughitt | last post by:
Hi all, I am having trouble preloading images in a javascript application, and was wondering if anyone had any suggestions. Basically I have a bunch of images stored in a database as BLOBs. At...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.