From 25a3abedd5f5cd4d27e99592cc74bded6dd231ab Mon Sep 17 00:00:00 2001 From: Salih Date: Tue, 18 Apr 2023 17:51:53 +0300 Subject: [PATCH] Edited How to Optimize Your ASP.NET Application for Improved Performance blog post --- .../post.md | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/docs/en/Blog-Posts/2023-04-17-How-to-Optimize-Your-ASP.NET-Application-for-Improved-Performance/post.md b/docs/en/Blog-Posts/2023-04-17-How-to-Optimize-Your-ASP.NET-Application-for-Improved-Performance/post.md index ba045e4c45..261621933a 100644 --- a/docs/en/Blog-Posts/2023-04-17-How-to-Optimize-Your-ASP.NET-Application-for-Improved-Performance/post.md +++ b/docs/en/Blog-Posts/2023-04-17-How-to-Optimize-Your-ASP.NET-Application-for-Improved-Performance/post.md @@ -5,15 +5,14 @@ If you want your ASP.NET application to perform well, you need to optimize it fo ## 🚀 Use Response Compression in Your ASP.NET Application You can use ASP.NET Core's built-in response compression middleware to compress the response data and reduce the amount of data that needs to be transferred over the network. To use response compression, add the following code to your application's Startup.cs file: -```javascript - +```csharp services.AddResponseCompression(options => { options.EnableForHttps = true; }); app.UseResponseCompression(); -``` +``` ## 🖼️ Optimize Images in Your ASP.NET Application: @@ -37,10 +36,10 @@ Images can be a major contributor to page bloat and slow load times. Here are so Image +``` - +```javascript +var lazyLoadInstance = new LazyLoad(); ``` ## 🧱 Optimize HTML in Your ASP.NET Application: @@ -78,13 +77,13 @@ To improve the perceived performance of your website, you can use placeholders a

Loading...

- - ``` ## 🔗 Use the Appropriate Link Text and ARIA Labels: @@ -116,4 +115,4 @@ ABP Framework offers an opinionated architecture to build enterprise software so If you are starting a new ASP.NET Core project, try [abp.io](https://abp.io/) now... -**IT IS FREE AND OPEN-SOURCE!** +**IT IS FREE AND OPEN-SOURCE!** \ No newline at end of file