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

Improving download times

I'm using a single css for 3 different layouts in my site, where everything
is the same, but header images. Recently I've run a "download times" test
and it turned out that my css is calling the 3 images every time a file is
opened, increasing total download time, even though only one header image is
actually appearing on that page.

So, is this really happening when a user opens a single page? Should I
better have 3 stylesheets instead of only one?

Thanks for your thoughts...

Jul 21 '05 #1
5 1820
Roman wrote:
I'm using a single css for 3 different layouts in my site, where everything
is the same, but header images. Recently I've run a "download times" test
and it turned out that my css is calling the 3 images every time a file is
opened, increasing total download time, even though only one header image is
actually appearing on that page.

So, is this really happening when a user opens a single page? Should I
better have 3 stylesheets instead of only one?

Thanks for your thoughts...

interesting, although i think that most modern browsers only download
those images that are actually used in the <body>. but you could stretch
your test including 1000 images (some very large images) in your css and
none or 1 in your body.
Jul 21 '05 #2
On Sun, 3 Apr 2005, Roman wrote:
I've run a "download times" test and it turned out that my css is
calling the 3 images every time a file is opened,
Please be more specific about this "download times test". Is it
monitoring the operation of some real browser (if so, what browser was
it?), or is it some self-contained utility which is simply retrieving
every URL that it can find? If the latter, then it might be that a
real browser would behave differently.

In any case, *even* if all 3 images were being retrieved, then so long
as your images are being sent out with proper cache validator
information, then any normal browser would be cacheing them on first
retrieval, and they'll do little harm thereafter.
Should I better have 3 stylesheets instead of only one?


I don't think there's a hard and fast answer to that one - "it
depends". Can the reader start browsing the page while the image(s)
are still being retrieved? It can be very annoying, on the *first*
visit to a page, being made to wait while extraneous decorations are
being retrieved, *before* the browser is willing to display the
substantive content. It's even *more* annoying if this happens on
*every* visit to the same page (as seems to happen with some
poorly-designed systems for dynamically building pages at the server,
but presumably we're not dealing with such a system in your case).

(I'd surely want to take a look at optimising the file size of the
images, regardless of these considerations.)
Jul 21 '05 #3

"Roman" <ro***@none.com> wrote in message
news:1112516452.32048753fab08f4f81945dbdea27c6ea@t eranews...
I'm using a single css for 3 different layouts in my site, where everything is the same, but header images. Recently I've run a "download times" test
and it turned out that my css is calling the 3 images every time a file is
opened, increasing total download time, even though only one header image is actually appearing on that page.

So, is this really happening when a user opens a single page? Should I
better have 3 stylesheets instead of only one?

Thanks for your thoughts...

Are you by chance using IE6 SP2 (and maybe earlier releases). Check this
against a non IE browser and see how many times the images are being called
from the server. It may_not_ be relevant, but you could be suffering from
some M$ marketing strategy.
Jimbo
Jul 21 '05 #4
Roman wrote:
I'm using a single css for 3 different layouts in my site, where everything
is the same, but header images. Recently I've run a "download times" test
and it turned out that my css is calling the 3 images every time a file is
opened, increasing total download time, even though only one header image is
actually appearing on that page.

Without an URL demonstrating the problem, we can only off WAGs.

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jul 21 '05 #5
Thanks everyone for your thoughts. Until now I would think that you could
have more information using the tool I talked about last time:

http://www.websiteoptimization.com/services/analyze/

Alan,
Cache, images and overall layout are all optimized for maximum accessibility
and quick access, so visitors *can* view the page fairly fast. That's not
the problem, but thanks for pointing to it.

As Jimbo sugests, it may be only a trick...

Jul 21 '05 #6

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

Similar topics

1
by: Wensheng | last post by:
Hi, I wrote a small template engine called spytee. Like any template enigne, it take a text(html) template file as input, process the variable tags in the file, and display the resulted text. The...
4
by: - - Pierre | last post by:
Hi all, I'm trying to come up with a script and I'm having a heck of a time... I require users to enter the size (in MB or KB) of the attachment they wish to transfer/upload. As they enter...
1
by: Brian Basquille | last post by:
Hello all. Have been working on the Air Hockey game on and off for a couple of weeks now.. but have had plenty of other assignments to keep me busy along with it. But i would like some...
3
by: Alia Khouri | last post by:
Due to a recent site overhaul by sourceforge certain files linked to from pypi won't install. For example, in trying to install all the dependencies for the subway web framework, I got this kind of...
1
by: mjheitland | last post by:
Hello, does anyone know if an update is available (or at least planned) for the much cited standard reference IMPROVING .NET APPLICATION PERFORMANCE AND SCALABILITY? link:...
26
by: Alexzive | last post by:
Hello there :) , I am a python newbie and need to run following code for a task in an external simulation programm called "Abaqus" which makes use of python to access the mesh (ensamble of nodes...
32
by: Pedro Borges | last post by:
Hi guys, Is there a way to improve the interpreter startup speed? In my machine (cold startup) python takes 0.330 ms and ruby takes 0.047 ms, after cold boot python takes 0.019 ms and ruby...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
1
TheServant
by: TheServant | last post by:
When a user downlaods a file from my website I want to track how many times it has been downloaded. When the user clicks on the link I can simply redirect to a page recording how many times this has...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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.