I have developed a web application. It has tacking much time to load every pages. How can i increase the speed and improve overall performance of the application.
Loading
I have developed a web application. It has tacking much time to load every pages. How can i increase the speed and improve overall performance of the application.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Anandu G NathPosted Dec 20, 2023, 6:14 AM
Please refer Below link
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/best-practices?view=aspnetcore-8.0
https://www.c-sharpcorner.com/article/10-tips-to-improve-performance-of-asp-net-core-application/
Amit MohantyPosted Jan 27, 2023, 11:46 AM
There are several ways to improve the performance of an ASP.NET Core web application:
Uday DodiyaPosted Jan 27, 2023, 9:51 AM
There are several ways to improve the performance of a web application, including:
Optimize images and other media by compressing them and reducing their file sizes.
Minimize the number of HTTP requests by combining files, such as CSS and JavaScript, into a single file.
Use a Content Delivery Network (CDN) to distribute content to users from servers that are geographically closer to them.
Use browser caching to store frequently used resources on the user's computer, so that they don't need to be downloaded again.
Implement lazy loading, which delays the loading of images and other resources until they are needed.
Use a tool like Google's PageSpeed Insights to identify specific areas of your application that may be causing performance issues and to receive recommendations on how to improve them.
Optimize the database by removing unused data, indexes, and table columns.
Use a framework or library like React or AngularJS, as they make it easier to build fast and efficient web applications.
Use a performance profiling tool to identify areas of the code that are taking too long to execute and optimize them.
Use a dynamic caching system like Memcached or Redis to store the results of expensive database queries or calculations.
Use a pre-rendering tool like Prerender.io to pre-render pages on the server and send them to the browser.
Use a service worker to cache resources and provide offline access to your web application.
It's hard to say which one is the best solution for your specific case without analyzing your application and its current performance
Munib ButtPosted Jan 26, 2023, 7:51 PM
I would recommend to use the Benchmark Nuget package to benhcmark the performance of your core functions. This will give you an idea where the code is slow and memory utilization. You can then work to improve these.
Aravind GovindarajPosted Jan 25, 2023, 12:03 PM
On top of this, if you could you bit more details, could able to give suggestion on your specific use case
Sachin SinghPosted Jan 25, 2023, 7:54 AM
If your application is hosted then you can put your url in below link that will give you all reasons of slowness
https://gtmetrix.com/
If it is not hosted then here are my suggestions
1. Images should be compressed (of proper height and width not handled through css/javascript)
2. css and Js should be minified.
3. Less no of Ajax calls on page load.
4. Optimized Sql queries.
5.Enable Gzip or Brotli compression, if your Hosting provider doesn't support in this then let me know, i will share you the web.config settings for Gzip.
However the root reason in most cases are the images, images takes long time to load that makes page very slow.
also, if you are using Jquery datatable etc then don't load all data at once just fetch 10 records and use pagination to fetch the next 10 records on page number click.
Note:- Even if you have optimized sql queries that takes 1 sec to execute but if you fill a Jquery Datatable or dynamically create elements using large amount of data then browser takes huge time to load the dom, so pagination is must.
Naimish MakwanaPosted Jan 25, 2023, 5:58 AM
Please refer below link.
https://www.c-sharpcorner.com/article/10-tips-to-improve-performance-of-asp-net-core-application/
https://www.biztechcs.com/blog/asp-net-core-performance-best-practices/