Top Banner
Web Performance Optimization com ASP.NET Core @RodolfoFadino
16

Web Performance Optimization com ASP.NET Core

Jan 23, 2018

Download

Technology

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Web Performance Optimization com ASP.NET Core

Web Performance Optimizationcom ASP.NET Core

@RodolfoFadino

Page 2: Web Performance Optimization com ASP.NET Core
Page 3: Web Performance Optimization com ASP.NET Core

! Instantâneo

Page 4: Web Performance Optimization com ASP.NET Core

Soma de fatores

Back-End

• Cache

• Thread

• Debug/Release

• SQL

• IO

• Network

• ...

Front-End

• CSS

• JS

• IMG

• Headers

• Minified

• CDN

• Proxy

• Cookies

• ...

Page 5: Web Performance Optimization com ASP.NET Core

Vamos fazer um projeto para isso

Page 6: Web Performance Optimization com ASP.NET Core

Backlog

Page 7: Web Performance Optimization com ASP.NET Core

Melhorar a performance é uma responsabilidade nossa

(desenvolvedor)

Page 8: Web Performance Optimization com ASP.NET Core

“…only 10-20% of the total end-user response time is spent getting the HTML document to the browser. You need to focus on the other 80-90% if you want to make your pages noticeably faster…” (Steve Souders)

Page 9: Web Performance Optimization com ASP.NET Core

14 regras

Rule 1 - Make Fewer HTTP RequestsRule 2 - Use a Content Delivery NetworkRule 3 - Add an Expires HeaderRule 4 - Gzip ComponentsRule 5 - Put Stylesheets at the TopRule 6 - Put Scripts at the BottomRule 7 - Avoid CSS ExpressionsRule 8 - Make JavaScript and CSS ExternalRule 9 - Reduce DNS LookupsRule 10 - Minify JavaScriptRule 11 - Avoid RedirectsRule 12 - Remove Duplicate ScriptsRule 13 - Configure ETagsRule 14 - Make AJAX Cacheable

Page 10: Web Performance Optimization com ASP.NET Core

Anatomia de uma requisição HTTP

• DNS Lookup

• Initial Connection

– Keep-Alive Header

• Time to First Byte

• Content Download

Page 11: Web Performance Optimization com ASP.NET Core

CSS e JS

CSS

– Header

JS

– Assíncrono

– Mais próximo do final

Bundling

Minification

Page 12: Web Performance Optimization com ASP.NET Core
Page 13: Web Performance Optimization com ASP.NET Core

Static Files

Expires

Handler

Imagens físicas

Lazy Load

Dependendo do cenário

Sprites

Otimizar

RIOT

Page 14: Web Performance Optimization com ASP.NET Core
Page 15: Web Performance Optimization com ASP.NET Core
Page 16: Web Performance Optimization com ASP.NET Core

Obrigado

• @rodolfofadino

• http://rodolfofadino.com.br