Weitere ähnliche Inhalte Ähnlich wie Building high performance web applications (20) Mehr von Maurice De Beijer [MVP] (20) Kürzlich hochgeladen (20) Building high performance web applications2. Topics
What is fast?
Tooling
Code splitting
Server side rendering
Only render above the fold
Service worker
© ABL - The Problem Solver 2
3. Maurice de Beijer
The Problem Solver
MicrosoftAzure MVP
Freelance developer/instructor
Twitter: @mauricedb, @NG_Tutorial and @React_Tutorial
Web: http://www.TheProblemSolver.nl
E-mail: maurice.de.beijer@gmail.com
3
4. Why?
40% of the web traffic is from mobile devices.
Bol.com in July 2016
Adding 100 ms of latency costs 1% of sales
Amazon.com
© ABL - The Problem Solver 4
7. “Performance is the art of
avoiding work, and
making any work you do
as efficient as possible”
-- Paul Lewis --
© ABL - The Problem Solver 7
22. ECMAScript
imports
import _ from 'lodash';
_.forEach(data, e => console.log(e));
© ABL - The Problem Solver 22
import { forEach } from 'lodash/forEach';
forEach(data, e => console.log(e));
23. import rxjs from 'rxjs';
rxjs.Observable.from(data)
.map(e => 2 * e)
.subscribe(e => console.log(e));
ECMAScript
imports import { Observable } from 'rxjs/Observable';
import 'rxjs/add/observable/from';
import 'rxjs/add/operator/map';
Observable.from(data)
.map(e => 2 * e)
.subscribe(e => console.log(e));
© ABL - The Problem Solver 23
32. Try it http://bit.ly/fast-apps
© ABL - The Problem Solver 32
33. Conclusion
Everyone loves faster web apps.
And they are good for business
Avoid or delay as much as possible.
What you don’t do can’t slow you down
Do as few request as possible to display the first page.
The fastest HTTP request is one not made
Use the browsers capabilities as much as possible.
© ABL - The Problem Solver 33
Hinweis der Redaktion https://pixabay.com/nl/supersonische-vechter-vliegtuigen-63211/ https://pixabay.com/nl/boord-blackboard-lettertype-1805318/ https://www.pexels.com/photo/train-on-railroad-tracks-against-sky-258367/ https://unsplash.com/photos/EXcDH29WLbg https://pixabay.com/nl/dolfijn-kind-kinderen-spelen-1548448/ https://pixabay.com/nl/batterij-aa-energie-huidige-1109088/ https://www.pexels.com/photo/grey-metal-hammer-34520/ https://unsplash.com/search/splitting?photo=Xxd33FUBQeA https://pixabay.com/nl/marokko-truck-vrachtwagen-hooi-842660/ https://pixabay.com/en/technology-servers-server-1587673/ https://jonassebastianohlsson.com/criticalpathcssgenerator/ https://pixabay.com/nl/sprinkhaan-viridissima-groene-193721 https://pixabay.com/en/waldorf-astoria-construction-169387/