Does multiple pages slow down a website?

Donald Symmons 2,856 Reputation points
2022-06-15T15:12:18.987+00:00

Hello forum,

May I please ask if having multiple pages on your website can slow down your website?

-Lets say having over 50 Web pages

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,273 questions
0 comments No comments
{count} votes

Accepted answer
  1. Michael Taylor 48,581 Reputation points
    2022-06-15T15:39:01.89+00:00

    The # of web pages in an app has no correlation to its speed for handling requests. Each user is referencing a single page at a time. Using default settings, when a request occurs the runtime compiles the ASPX page (if not already done), runs the server code and returns the results. The # of pages have no impact on this behavior.

    Where a lot of web pages can cause issues is with the size of your assembly. Since the codebehind files are compiled into an assembly at build time and then loaded at runtime, the more pages you have the more codebehind you have and therefore the larger the assembly. Another place where more pages could impact performance is if you had a lot of users hit the server at the same time and each hit a separate page. In that case the runtime would need to compile all those pages which could slow things down. But this is unlikely to be an issue.

    Honestly 50 pages is nothing. If you had say 5000 then it would be a different conversation but 50 pages isn't actually a very big site in my opinion. If you're seeing slow site performance then you should profile the site to see where the issue lies. In most cases it is either your server side code being inefficient or a database/network issue. None of that is related to the # of web pages you have.


0 additional answers

Sort by: Most helpful