473,598 Members | 3,266 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1831
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 .32048753fab08f 4f81945dbdea27c 6ea@teranews...
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
1616
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 difference from most templates are: you can edit the template file in the html editor(Frontpage, Dreamweaver, whatever), thus a near Complete seperation of presentation and logic. It's very simple and easy, you only need 3 types of tags to...
4
5644
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 the number and move over to the next field (using onBlur or...), I would like a popup/alert window warning them that this attachment size would take "x" amount of time based on a speed of 24 kilobits per second (kbps). If they are happy with the...
1
1343
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 suggestions on improving it. It's far from fully working, but some suggestions on the following would be great. Please download it from: http://homepage.eircom.net/~basquilletj/AirHockey.rar.
3
1438
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 error: <snip> .. .. .. Searching for CherryPy>=2.1.0-rc1 Reading http://www.python.org/pypi/CherryPy/
1
1518
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: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag/html/scalenet.asp or as a download:
26
1736
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 with xy coordinates) of a certain geometrical model. Code: Select all
32
3783
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 0.005 ms to start.
1
47434
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 on a link and after a moment or two a file download dialog box pops-up in your web browser and prompts you for some instructions, such as “open” or “save“. I’m going to show you how to do that using a perl script. What You Need Any recent...
1
1318
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 been downloaded before the download starts, but is there a way to record how many times the download is completed? I think it will need to be server based, as I don't know how to check if download is complete any other way?
0
7987
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7899
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8397
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8050
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8264
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6718
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5850
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5438
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
1504
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.