web performance [#perfmatters]
TRANSCRIPT
![Page 1: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/1.jpg)
Coca-Cola
Web performance[case] CCZ - Digital Sampling
![Page 3: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/3.jpg)
Web Performance[ técnicas de otimização front-end ]
![Page 4: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/4.jpg)
Performance
● Tempo de carregamento● Tempo de percepção● Tempo de execução (animação css - FPS)● Tempo de execução (js)
![Page 5: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/5.jpg)
Performance
● Tempo de carregamento● Tempo de percepção● Tempo de execução (animação css - FPS)● Tempo de execução (js)
![Page 6: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/6.jpg)
Impacto
● + Bounce rate● - Conversion rate● + SEO penalization● - UX (abandon)● + Hosting/Infrastructure costs
![Page 7: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/7.jpg)
“... optimize front-end performance first,that's where 80% or more of the end-user response time is spent” — Steve Soulders
![Page 8: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/8.jpg)
![Page 9: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/9.jpg)
Banda Larga
![Page 10: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/10.jpg)
![Page 11: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/11.jpg)
HTTP 1.1
![Page 12: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/12.jpg)
[ CASE ]CCZ - Digital Sampling
![Page 13: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/13.jpg)
![Page 14: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/14.jpg)
![Page 15: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/15.jpg)
[ checkpoint ] * Conexão: Good 3G (1Mbps 40ms RTT)
● Size: 1.3MB
● Requests: 31
● DOMContentLoad: 3.14s
● Load: 6.49s
![Page 16: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/16.jpg)
Imagens
![Page 17: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/17.jpg)
[46%]
![Page 18: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/18.jpg)
grunt-contrib-imageminhttps://github.com/gruntjs/grunt-contrib-imagemin
![Page 19: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/19.jpg)
-5%[-6%]
![Page 20: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/20.jpg)
![Page 21: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/21.jpg)
Krakenhttps://kraken.io
Compressorhttps://compressor.io
Tinypnghttps://tinypng.com
![Page 22: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/22.jpg)
[-74%] -41%
![Page 23: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/23.jpg)
![Page 24: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/24.jpg)
![Page 25: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/25.jpg)
![Page 26: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/26.jpg)
![Page 27: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/27.jpg)
[-75%] -46%
![Page 28: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/28.jpg)
![Page 29: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/29.jpg)
Unveilhttps://github.com/luis-almeida/unveil
(http://www.appelsiini.net/projects/lazyload)
![Page 30: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/30.jpg)
[-76%] -41%
![Page 31: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/31.jpg)
[ checkpoint ] * (Otimização de imagens)
● Size: 1.3MB -> 821KB [-36%]
● Requests: 31 -> 29 [-6%]
● DOMContentLoad: 3.14s -> 2.96 [-6%]
● Load: 6.49s -> 3.83s [-40%]
![Page 32: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/32.jpg)
Fonts
![Page 33: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/33.jpg)
medium != book ?
![Page 34: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/34.jpg)
medium book
![Page 35: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/35.jpg)
[-34%]
![Page 36: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/36.jpg)
[ checkpoint ] * (Otimização de fonts)
● Size: 1.3MB -> 797KB [-38%]
● Requests: 31 -> 28 [-9%]
● DOMContentLoad: 3.14s -> 2.87 [-8%]
● Load: 6.49s -> 3.50s [-46%]
![Page 37: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/37.jpg)
Requests
![Page 38: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/38.jpg)
![Page 39: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/39.jpg)
![Page 40: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/40.jpg)
![Page 41: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/41.jpg)
[ checkpoint ] * (Otimização requests)
● Size: 1.3MB -> 722KB [-44%]
● Requests: 31 -> 25 [-19%]
● DOMContentLoad: 3.14s -> 2.86 [-8%]
● Load: 6.49s -> 3.38s [-47%]
![Page 42: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/42.jpg)
Servidor
![Page 43: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/43.jpg)
Gzip / Deflate(compactação de dados)
max-age(controle de cache)
![Page 44: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/44.jpg)
![Page 45: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/45.jpg)
[ checkpoint ] * (Otimização servidor)
● Size: 1.3MB -> 381KB [-70%]
● Requests: 31 -> 25 [-19%]
● DOMContentLoad: 3.14s -> 1.41 [-63%]
● Load: 6.49s -> 1.92s [-70%]
![Page 46: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/46.jpg)
Inicial (6,49s)
Otimização de imagens (3,83s)
Otimização de fonts (3,50s)
Otimização de requests (3,38s)
Otimização de servidor (1,92s)
Recap... * Conexão: Good 3G (1Mbps 40ms RTT)
![Page 47: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/47.jpg)
site site otimizado
381KB25
1.41s1.92s
1.3MB31
3.14s6.49s
![Page 48: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/48.jpg)
“Performance is not a checklist, it's acontinuous process” — Ilya Grigorik
![Page 49: Web performance [#perfmatters]](https://reader031.vdocuments.pub/reader031/viewer/2022030316/5878cf251a28ab917a8b49ff/html5/thumbnails/49.jpg)
Obrigado
http://browserdiet.com/
PERFORMANCE
MATTERS