Forum Moderators: open

Message Too Old, No Replies

Slow ASP Includes

Is there a way to speed up ASP includes

         

webworker us

5:40 pm on Jul 5, 2005 (gmt 0)

10+ Year Member



Hello All.

I am currently rebuilding our Intranet site and am running into a speed issue. The ASP pages I am building are mostly includes, which tie webpages made in word together. Each Department Director gets various sections, and so they create the section in word, and the includes pull it all together.

My question is, how can I make the include process load faster, or at least "seem" faster to the user.

Thanks.

mrMister

7:03 pm on Jul 5, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How many includes are you using?!

Are these static includes we're talking about? Or do they include ASP code?

carguy84

10:08 pm on Jul 5, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think the slowness you're experiencing would be from the size of the HTML files Word produces. How did you figure out it was the includes that is slowing it down? If it's on a LAN and it's slow, then it would indeed have to be a processing issue. If it's all just HTML, then there's way too much of it if it is slow :)

Chip-

mrMister

12:03 pm on Jul 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



webworker, what exactly do you mean by "slow"

Is the code taking too long to process or is the HTML taking too long to download?

webworker us

1:32 pm on Jul 6, 2005 (gmt 0)

10+ Year Member



Thanks for all the replies. I'm mostly guessing that it is the includes becuase they are all that is on the page besides a few lines for titles and such. The pages have roughly 4 - 5 includes on them. I was hoping I could do some good on my end of things, becuase as it stands the departments will not be changing from Word any time soon for webpages.

I spent some time last night looking into ways to clean up webpages made in word, and I think I have a few things to try using. The "real" problem I guess is the amount of code that word creates and that the server must then include.

When I say it is "slow" I mean the page takes forever to load (15 seconds for straight text). Which for my users is considered "unacceptable". The pages have no pictures just tables of links.

sem4u

1:37 pm on Jul 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



They are using Word! At least try and clean the pages up with Dreamweaver or something.

rogerd

1:44 pm on Jul 6, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



15 seconds to load is really long - I'd take a look at the file sizes to see if they are gigantic; if not, then perhaps there's some kind of server issue. Do your users connect via LAN or dial-up? A slow connection will magnify the "big file" problem.

As far as cleaning up Word files, Dreamweaver has a tool for doing that - "Clean up Word HTML". It strips out a lot of the overblown class info that Word builds in for formatting.

Do your users do a lot of formatting (bolded words, headings, etc.)? If not, saving the files in text format would let the web page and style sheet do the formatting and eliminate the Word HTML completely.

webworker us

1:51 pm on Jul 6, 2005 (gmt 0)

10+ Year Member



We are connecting over a LAN. At the moment the server is IIS (grr) but that is changing. The files are about 30 KB a piece, so rather large.

The users at the moment use lots of fonts (aweful choices at that) but the main purpose of each of the documents they create is as a table of links to the reports that they have created.

I'm thinking of going to start them off with saving them as web page filtered, which should help some, and after that run it through Textism (http://textism.com/wordcleaner/)

mrMister

2:04 pm on Jul 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



the server is IIS (grr)

Don't blame IIS, you cretin. It isn't the webserver that's causing the problem. Its the fact that you are placing massive files on the server. The same problem will occur on any web server.

The quickest fix for you is to enable HTTP compression. That will roughly halve the download time for your users.

As others have said, the real cause of the problem is that you are using the wrong tool for the job.

Microsoft Word is designed for printing documents to paper. It is a very good tool for that job.

If you try and use it for something it was not designed to do (ie Web Publishing), you're going to run in to trouble.

Easy_Coder

2:16 pm on Jul 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



A 30K file is really not that big. So, your actually opening the file and parsing it on the fly for display purposes right? I would think that the transformation process is where your bottleneck is at.

I would consider changing the design and introduce an out of process utility that watched the folder where your users are storing documents. If the utility notices a change event then the parsing can be done at that time and the clean code could be stored elsewhere in an even smaller file that interacts with the asp files.

Then write yourself a com object to open and grap the clean code file from your asp page.

mrMister

2:34 pm on Jul 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



30K file is really not that big

Yes, but he's including 4-5 of these 30K files in one page.

So his users are having to download a 120K-150K document.

With a 56Kbps modem (5KB/sec) this will take 24 - 30 seconds.

Its not the server that is slowing things down, its just that he's serving massive files.

Easy_Coder

3:36 pm on Jul 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yeah but this is on a LAN so even if it's 4 or 5 files at 30k each thats not a big deal.

I've seen LAN based apps serving up 500-800K webpages with faster response times that webworker is indicating.

mrMister

3:46 pm on Jul 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You're thinking of a well configured LAN. ;-)

Fair point though. From the speeds he was getting> iwas assuming modem usage.

It would help if webworker could find out where the problem is occuring.

What happens when you try an access these documents on the localhost?

Are they as slow on the localhost as they are across the network?

What happens to the processor usage?

webworker us

4:11 pm on Jul 6, 2005 (gmt 0)

10+ Year Member



I found the problem. Unannounced to me, our Finance Department attempted to attach their Fiscal Year Report to the page. Unfortunatly its failing, so I kept having to wait for the server to give up. I pulled the report, and the speed is better. (I'm now averaging a 1 - 2 seconds for load time)

Thanks for everything guys