15 Simple Tips to Optimize ASP.NET Performance


. . , , , . , ASP.NET ASP.NET .





ASP.NET -, .





1.

Measure app peformance
Measure app peformance

, โ€” . , , , . ASP.NET , . , JavaScript . : , Prefix.





Prefix , JavaScript . , . . , , , .





2.

, , , . , , . ( JavaScript, CSS ), , , .





, , , . , , .





3.

HTTP , . - , , HTML, CSS JavaScript . HTTP- gzip. gzip HTML- ; , 100 33 . !





, , Brotli, .





4. HTTP-

, , โ€œ โ€. TCP/IP. , . , , , , HTTP- - .





:





- . , , - ( ). , : , .





โ€” , - . Honda Civic 2001 , , Destiny's Child.





โ€” , -. , , . , . .





, , . JavaScript, webpack, gulp grunt JavaScript . CSS , , JavaScript.





. , CSS Spriting. , CSS, , . , , , , . .





HTTP 2.





5. HTTP/2 SSL

HTTP, HTTP/2, . -, , โ„–3, , . , , , ยซ ยป. , HTTP- . .





HTTP/2, , , , , . , - Azure HTTP/2.





, . , JavaScript, , , , , .





SSL , , HTTP2, , HTTPS.





6.

โ€” , , , HTML, CSS JavaScript, . , compress(x) => decopress(x) x. , , . , JavaScript





function doSomething(){ 
    var size_of_something_to_do = 55; 
    for (var counter_of_stuff = 0; 
        counter_of_stuff < size_of_something_to_do; 
        counter_of_stuff++) { 
        size_of_something_to_do--; 
    } 
}
      
      







function doSomething(){var a=55;for(var b=0;b<a;b++){a--;}}
      
      



, , . . CSS HTML.





7. CSS

CSS , .





, , , . , - . , , - , , . , , , . , , โ€” . , .





8. JavaScript

JavaScript โ€” CSS, . , , , JavaScript . , , . .





: JavaScript, , Angular React, , JavaScript . , JavaScript, , . , . , JavaScript HTML . , , .





9.

. SVG CSS , , . , , . , , . tinypng, , .





EXAMPLE OF A TINYPNG GREETING PANLA
TINYPNG

 





JavaScript, , , , .





10.

ORM ( - ) , , . Prefix , n + 1 select . , , . Microsoft , EF (Entity Framework) SQL.





11.

. , Stack Overflow , , . , , , .





ASP.NET MVC, , .





[HandleError] public class HomeController : Controller { 
    [OutputCache(Duration=10, VaryByParam="none")] 
    public ActionResult Index() { 
        return View(); 
    } 
}
      
      



, , 12 .





12.

; . , . , . MVC 5 , MVC Core โ€” .





SECTIONS IN GREEN ARE CACHED BY PAGE AND ORANGE CACHED BY USER
, , ,  

13. (CDN)

300000 /, ; , , . , , .





Content Delivery Networks
Content Delivery Networks

14.

, jQuery, , , , , . Zeptojs โ€” , jQuery, . , jQuery UI, . Angular, , , . , , .





15.

- . , , , . โ€” . , , โ€” SSL- . HTTP Strict Transport Security . SSL- .





ASP.NET - , , . , , , , . -: 3 .






ยซC# ASP.NET Core ยป








All Articles