Search code examples
c#asp.netiiswebserverasp.net-webpages

Reason to take more loading time of asp.net page and how to reduce it


I have the following queries regarding the loading time of asp.net page. Anyone can help. What are the possibilities of asp.net page consuming more loading time?. How to reduce the loading time of asp.net web page?


Solution

    1. Images used

      • The images used should be optimized and consider low file size.
      • Allow Caching of images
    2. Reduce number of scripts and stylesheets

      • Try minimizing and combining CSS and script files
    3. Enable HTTP Compression

    4. Compilation should be on release mode ie, remove <compilation debug="true"/> from web.config

    5. Check the Viewstate, big viewstates slow downs the page.

    6. If you are consuming the database, try database level paging, if the number of records are higher. Consider fetching only the required fields.