Results 1 to 6 of 6

Thread: Page Takes A Long Time To Show

  1. #1

    Thread Starter
    Hyperactive Member ARPRINCE's Avatar
    Join Date
    Mar 2003
    Location
    Pinoy in NJ
    Posts
    381

    Page Takes A Long Time To Show

    In creating an ASPX page, when you modify the page for whatever reason, I noticed that it takes a very long time before the page is fully visible on the browser. If you close the page and access it again, it comes up in a snap. I figured this because the first time it runs, the revised page is being recompiled (I use VS.NET 2003) and I'm in DEBUG mode.

    However, I noticed the same thing on the clients when already in production. If I make changes on my project and and save with VS.NET in RELEASE configuration in the production server, clients accessing the web page for the first time after the revision takes awhile. Succeeding access on the same page is fast.

    Any ideas why this is so?

    Thanks

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Page Takes A Long Time To Show

    Simple explanation: The first time you access the app, JIT is JITTING the Web Application's assembly.

  3. #3

    Thread Starter
    Hyperactive Member ARPRINCE's Avatar
    Join Date
    Mar 2003
    Location
    Pinoy in NJ
    Posts
    381

    Re: Page Takes A Long Time To Show

    Would that in any way affect the client because I did notice that delay on the client too?

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Page Takes A Long Time To Show

    It's applicable everywhere.

    If you don't like it, you can do a search on Precompiling asp.net applications.

    I did a search for you and saw this:

    http://www.codeproject.com/aspnet/PreCompileAspx.asp

  5. #5

    Thread Starter
    Hyperactive Member ARPRINCE's Avatar
    Join Date
    Mar 2003
    Location
    Pinoy in NJ
    Posts
    381

    Re: Page Takes A Long Time To Show

    Quote Originally Posted by mendhak
    It's applicable everywhere.

    If you don't like it, you can do a search on Precompiling asp.net applications.

    I did a search for you and saw this:

    http://www.codeproject.com/aspnet/PreCompileAspx.asp
    That was valuable information - thanks.

  6. #6
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131

    Re: Page Takes A Long Time To Show

    If you are in debug mode it'll run a lot slower anyway - try taking it out of debug mode and see how quick it is then.

    DJ

    If I have been helpful please rate my post. If I haven't tell me!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width