How to control browser resources

A Terentiev 85 Reputation points
2024-01-13T09:41:19.7166667+00:00

Dear Gurus! Website on Blazor server. On some relatively weak machines (For example, OS Windows XP 32 bit, 2 GB of RAM), after some time after working on the site, the client receives a message - there is not enough memory to load the page or something like that... Although nothing that could lead to a leak browser memory. The OSM map is shown, the service provides 7 records from PostGresql. Are there tools that show where memory is being wasted in the browser? To somehow monitor the situation... How to test a site for such errors?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,803 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,665 questions
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 72,996 Reputation points
    2024-01-13T17:50:41.4533333+00:00

    With blazor server, the client code has two main uses of memory. The client side razor tree which has a copy of all dom elements and the dom. Of course if you use js interop, you could be using other memory. See https://webkit.org/blog/6425/memory-debugging-with-web-inspector/

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.