TDC 2015 - Otimizando a performance do front end
-
Upload
andrehjr -
Category
Engineering
-
view
83 -
download
1
Transcript of TDC 2015 - Otimizando a performance do front end
![Page 1: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/1.jpg)
Otimizando a performance do
front-end em uma aplicação real
![Page 3: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/3.jpg)
![Page 4: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/4.jpg)
![Page 5: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/5.jpg)
![Page 6: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/6.jpg)
1.52M+ de requests
~3 segundos
![Page 7: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/7.jpg)
8M+ de requests
~2 segundos
![Page 8: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/8.jpg)
Performance é a
feature mais importante.
![Page 9: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/9.jpg)
NO FRONT-END?
![Page 10: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/10.jpg)
MicrosoftAmazonGoogle
![Page 11: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/11.jpg)
PERCEPÇÃO HUMANA
![Page 12: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/12.jpg)
Tempo de primeira resposta
![Page 13: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/13.jpg)
Tempo de primeira resposta
![Page 14: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/14.jpg)
Tempo de primeira resposta
![Page 15: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/15.jpg)
https://developers.google.com/web/fundamentals/performance/critical-rendering-path/
![Page 16: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/16.jpg)
MELHOR ENGAJAMENTO
![Page 17: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/17.jpg)
MAIOR RETENÇÃODE USUÁRIOS
![Page 18: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/18.jpg)
MAIS CONVERSÕES
![Page 19: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/19.jpg)
Como eles se sentem?
![Page 20: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/20.jpg)
SPEED MATTERS
![Page 21: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/21.jpg)
MÉTRICAS
![Page 22: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/22.jpg)
REAL USERMONITORING
(RUM)
![Page 23: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/23.jpg)
Requisição http
![Page 24: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/24.jpg)
Requisição http
![Page 25: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/25.jpg)
Requisição http
![Page 26: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/26.jpg)
Requisição http
![Page 27: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/27.jpg)
80% do tempoé gasto no Front-
end.
![Page 28: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/28.jpg)
DEFINIR METAS
![Page 29: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/29.jpg)
FIRST RENDER
~600ms
![Page 30: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/30.jpg)
Critical Rendering Path
![Page 31: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/31.jpg)
Critical Rendering Path
![Page 32: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/32.jpg)
DO NOT BLOCK!
![Page 33: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/33.jpg)
CARREGUE SOMENTE
O NECESSÁRIO
![Page 34: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/34.jpg)
CARREGUE TODO O RESTO
ASSINCRONAMENTE
![Page 35: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/35.jpg)
<script />
![Page 36: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/36.jpg)
<script async />
![Page 37: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/37.jpg)
![Page 38: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/38.jpg)
REDES LENTAS
![Page 39: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/39.jpg)
JÁ TESTOU SEU SITE EM UMA 3G?
![Page 40: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/40.jpg)
![Page 41: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/41.jpg)
INLINE CRITICAL CSS
![Page 42: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/42.jpg)
![Page 43: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/43.jpg)
REDUZIR REQUESTSAO SERVER
![Page 44: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/44.jpg)
IMAGENS EM SPRITE
![Page 45: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/45.jpg)
MINIFICARJAVASCRIPT / CSS
![Page 46: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/46.jpg)
GZIP
![Page 47: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/47.jpg)
Net flix gain
![Page 48: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/48.jpg)
USE CONTENT DELIVERY
NETWORK (CDN)
![Page 49: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/49.jpg)
Cuidado com JS de terceiros.
![Page 50: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/50.jpg)
PRE-FETCH / DNS-PREFETCH
/ PRE-RENDER
![Page 51: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/51.jpg)
Don't stop.
![Page 52: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/52.jpg)
HANDS-ON!
![Page 53: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/53.jpg)
Confreaks
![Page 54: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/54.jpg)
Confreaks
![Page 55: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/55.jpg)
Confreaks
![Page 56: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/56.jpg)
Confreaks
![Page 57: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/57.jpg)
Confreaks
![Page 58: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/58.jpg)
Confreaks
![Page 59: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/59.jpg)
9to5mac
![Page 60: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/60.jpg)
![Page 61: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/61.jpg)
One more
![Page 62: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/62.jpg)
![Page 63: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/63.jpg)
![Page 64: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/64.jpg)
![Page 65: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/65.jpg)
![Page 66: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/66.jpg)
Quick wins
![Page 67: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/67.jpg)
NGX_PAGESPEED
![Page 68: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/68.jpg)
HTTP 2.0/SPDY
![Page 69: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/69.jpg)
FERRAMENTAS
![Page 70: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/70.jpg)
Page speed Insights
NewRelic
Google Analytics
http://stevesouders.com/cuzillion/
> performance.timing
Google Web tools
![Page 71: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/71.jpg)
REFERÊNCIAS
![Page 72: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/72.jpg)
![Page 73: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/73.jpg)
RESUMO
![Page 74: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/74.jpg)
Carregue inicialmente somenteo que você precisa
![Page 75: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/75.jpg)
Não bloqueie o critical rendering path
(usuários não gostam de ver uma tela em branco)
![Page 76: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/76.jpg)
Conheça a sua aplicação, ajude o browser!
![Page 77: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/77.jpg)
Mais performance, economizando recursos!
(R$$$$)
![Page 78: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/78.jpg)
Tenha métricas de
cada mudança
![Page 79: TDC 2015 - Otimizando a performance do front end](https://reader036.fdocument.pub/reader036/viewer/2022062406/55c419ecbb61eb2b468b4650/html5/thumbnails/79.jpg)