Home All Groups Group Topic Archive Search About

Compress the code of .aspx files

Author
8 Sep 2006 2:27 PM
dust
I need to improve the download speed for an asp.net 2.0 application.
So I'd like to compress the dimension of the .aspx pages.
These pages don't have any images or heavy element.
The most long text of the pages is the javascript code that is
automatically inserted on the pages by the .net.

How can i compress these files?

Author
8 Sep 2006 3:02 PM
Kevin Spencer
Put the JavaScript into an external .js file.

--
HTH,

Kevin Spencer
Microsoft MVP
Chicken Salad Surgery

What You Seek Is What You Get.

Show quoteHide quote
"dust" <ti***@tizianarosati.it> wrote in message
news:1157725643.573724.137920@m73g2000cwd.googlegroups.com...
>I need to improve the download speed for an asp.net 2.0 application.
> So I'd like to compress the dimension of the .aspx pages.
> These pages don't have any images or heavy element.
> The most long text of the pages is the javascript code that is
> automatically inserted on the pages by the .net.
>
> How can i compress these files?
>
Are all your drivers up to date? click for free checkup

Author
8 Sep 2006 3:33 PM
Karl Seguin [MVP]
Pesonally, I never leave home without my compression modules, both of which
are free.

For 1.x I use Ben Lowery's
(http://www.blowery.org/code/HttpCompressionModule.html)
For 2.x I use  Richard's Crane
(http://www.gotdotnet.com/Workspaces/Workspace.aspx?id=2ccc1da1-e45c-401f-9b58-9b533eadb66b)

you need to join the workspace to be able to download it (i hate gotdotnet).
I see well over 50% compression with either (the 2nd one handles axd files
much better)

Karl

Show quoteHide quote
"dust" <ti***@tizianarosati.it> wrote in message
news:1157725643.573724.137920@m73g2000cwd.googlegroups.com...
>I need to improve the download speed for an asp.net 2.0 application.
> So I'd like to compress the dimension of the .aspx pages.
> These pages don't have any images or heavy element.
> The most long text of the pages is the javascript code that is
> automatically inserted on the pages by the .net.
>
> How can i compress these files?
>

Bookmark and Share