Speed up page loading times

Posted on 2011-10-11
Last Modified: 2012-05-12
Hi am I am new to and building a website, but pages are loading too slow. I have asked a few questions on how to speed things up, but want it faster. I have always used static html pages before.
It works quite fast on my pc but when uploaded there is a few seconds delay on each page.
The menu datatable is now stored in cache which is a little faster

The site is on a test server at http://advantau.w03.winhost      .com
I have put a space in to stop google picking it up
Question by:taz8020
    LVL 3

    Expert Comment


    well, it all depends on what your pages actually do. But this also depends on how you actually deployed your application. Is it a web-application, or a web-site (different project-templates).
    ASP.NET will compile the pages the first time they are accessed. Whenever the worker-process (w3wp.exe) gets recycled, ASP.NET will again compile the pages.
    You can change that behaviour by building your application as precompiled.

    However, from your posting I guess that your pages are slow in general.
    Did you try a performance-profiles like JetBrains' excellent dotTrace? This will give you a clue about where the time is spent.
    I had a quick look at your page.
    There are many images. Are they cached on the client? Or will they be downloaded an every request? You should consider using output-caching. And you should - if possible - verify that the server sends appropriate headers concerning caching of elements (i.e. the client may cache all images for about 2 hours).
    Another approach would be to minify CSS and JS files as well as GZipping your dynamic content (for instance using mbCompression-Library, just google it).

    With fiddler I can see, that the images you display on the page are much bigger in reality, then on your page. This means, that you have to transfer more data then needed and then the browser has to resize them. You should consider bringing the images to the same size. When your display-size is for instance 48x48 pixels, do not load an image with 128x128 and then stuff it. This will reduce bandwidth and time-consumption.

    So there is no one-fits-all answer.
    Take a look at these tools : Fiddler2, dotTrace, mbCompression
    Adjust the size of your images to the actual need. If this is not possible (I see that the images are located at another server), think about building reduced-size copies of these images on the application-server (although this has a bad smell).

    Hope that helps you out a little,


    LVL 3

    Author Comment

    Hi KBerger, thanks for getting back to me. I will have a look at them now.
    The images will be resized and be on the correct server when it goes live.
    Just one thing though when i publish the site direct to the server in takes ages and deletes everything on there.
    So as a work around I publish it to another directory on my computer and then upload just the relevant precompiled files using web copy. Do you think this is ok?
    LVL 3

    Accepted Solution

    Hi taz,

    yes, I guess this is okay. However, you should make sure, that you only copy the files really needed for running the solution and maybe you should deactivate the feature of deleting before publishing. This can be found somewhere in the publish-Dialog.

    You could also use YSlow to identify whether there is a performance-problem with your page from a user-perspective.



    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Suggested Solutions

    Title # Comments Views Activity
    WS_CHILD window 14 36
    Run time error with script.render loc 2 16
    C# - SOLID Question 6 35
    Help needed on website authentication 7 37
    Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
    Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
    This video discusses moving either the default database or any database to a new volume.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now