I've built an XSLT that is used to generate a simple TreeView-type,
web-based control (ASP.NET / C#). When the tree is fully transformed
(client-side, JavaScript transformation), there are about 5 different
images that are referenced (page.gif, folder.gif, plus.gif, minus.gif,
and clearpixel.gif). What I assumed would happen would be that once it
loads page.gif, every place in the transformed HTML document that
references page.gif would load at the same time. However, what really
happens is the client will request the image page.gif for each and every
instance of page.gif on the resulting HTML document.
As it stands now, the tree has 600+ nodes. This results in 5 separate
images on the page, but ~2,400 image requests. This is, obviously,
highly unacceptable.
Any ideas about how to minimize the amount of image requests sent to the
server? 1 1329
Hi,
cache the images folder in IIS. E.g pick up the images folder
(right-click->Properties), select HTTP Headers tab and there check 'enable
content expiration'. Then just specify the time you wish IIS to cache images
for.
-
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist http://blogs.aspadvice.com/joteke
"Larry Marburger" <no@spam.com> wrote in message
news:vJ******************@fe29.usenetserver.com... I've built an XSLT that is used to generate a simple TreeView-type, web-based control (ASP.NET / C#). When the tree is fully transformed (client-side, JavaScript transformation), there are about 5 different images that are referenced (page.gif, folder.gif, plus.gif, minus.gif, and clearpixel.gif). What I assumed would happen would be that once it loads page.gif, every place in the transformed HTML document that references page.gif would load at the same time. However, what really happens is the client will request the image page.gif for each and every instance of page.gif on the resulting HTML document.
As it stands now, the tree has 600+ nodes. This results in 5 separate images on the page, but ~2,400 image requests. This is, obviously, highly unacceptable.
Any ideas about how to minimize the amount of image requests sent to the server? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Ed |
last post by:
I first noticed this in my own app. Images would show up missing
randomly on IE 6.0.2800.1106 on Windows 2000 server.
I then was able to repro this problem on Microsoft's website!!! The page I...
|
by: gipsy boy |
last post by:
Hello,
I have sort of a big problem. I would really appreciate any help you
could give me.
I made a web service in C++ that throws XML to the client (browser).
But, the XSLT transormation...
|
by: Larry Marburger |
last post by:
I've built and XSLT that is used to generate a simple TreeView-type,
web-based control (ASP.NET / C#). When the tree is fully transformed
(client-side, JavaScript transformation), there are about...
|
by: Harolds |
last post by:
The code below worked in VS 2003 & dotnet framework 1.1 but now in VS 2005
the pmID is evaluated to "" instead of what the value is set to:
....
xmlItems.Document = pmXML
// Add the pmID...
|
by: |
last post by:
I was wondering if there would be any significant performance increases by
loading Xslt Files into the Application Variables if there were a single or
maybe multiple XSLT file(s) that would be used...
|
by: John Moore |
last post by:
I have a set of code that is called on every page load that loads an xslt
file. The xslt file has an embedded <script> tag. Loading the page mutliple
times causes aspnet_wp.exe to use all available...
|
by: thomas.porschberg |
last post by:
Hi,
I want to read records from a database and export it in an arbitrary
format.
My idea was to feed a class with a String array fetched from the
database and let
this class fire SAX events as...
|
by: Scamjunk |
last post by:
I have been desperately looking for a treeview-type solution for my
problem
for the past three weeks and have been greatly unsuccessful. I am
totally
new to the world of XSLT and I *don't know*...
|
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...
|
by: super.raddish |
last post by:
Greetings,
I am relatively new to, what I would call, advanced XSLT/XPath and I
am after some advice from those in the know. I am attempting to figure
out a mechanism within XSLT to compare the...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
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,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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$) {
}
...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
| |