×
Copy
Open
Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
building abof.com ankur sethi
[email protected]
Slide 2
Slide 2 text
No content
Slide 3
Slide 3 text
No content
Slide 4
Slide 4 text
No content
Slide 5
Slide 5 text
No content
Slide 6
Slide 6 text
>20 seconds before something showed up on the screen on a 3g connection
Slide 7
Slide 7 text
No content
Slide 8
Slide 8 text
time to first paint
Slide 9
Slide 9 text
No content
Slide 10
Slide 10 text
abof’s numbers
Slide 11
Slide 11 text
time to first paint on 3g time in seconds 0 5 10 15 20 before after 2.6s 20s
Slide 12
Slide 12 text
page load time on 3g time in seconds 0 7 14 21 28 before after 9.4s 27s
Slide 13
Slide 13 text
http://bit.ly/2bBESNF
Slide 14
Slide 14 text
three principles
Slide 15
Slide 15 text
be impatient start painting to the screen as early as possible
Slide 16
Slide 16 text
be lazy do as little work on the device as possible
Slide 17
Slide 17 text
set quotas for payload size, number of requests, memory use pretty much all your computing resources
Slide 18
Slide 18 text
tech stack
Slide 19
Slide 19 text
speed payload tooling server rendering people react ✅ ⚠ ✅ ✅ ✅ angular2 ✅ ⚠ vue ✅ ✅ ⚠ ⚠ riot ✅ ✅ ⚠ ⚠
Slide 20
Slide 20 text
redux webpack babel gulp and others
Slide 21
Slide 21 text
architecture
Slide 22
Slide 22 text
No content
Slide 23
Slide 23 text
page load strategy http://www.abof.com/women/clothing/dresses
Slide 24
Slide 24 text
stage 1: html
Slide 25
Slide 25 text
No content
Slide 26
Slide 26 text
stage 2: javascript which then loads images, account information, etc. asynchronously
Slide 27
Slide 27 text
No content
Slide 28
Slide 28 text
No content
Slide 29
Slide 29 text
No content
Slide 30
Slide 30 text
stage 3: everything else third party scripts, analytics, etc.
Slide 31
Slide 31 text
No content
Slide 32
Slide 32 text
stage 1: html
Slide 33
Slide 33 text
why?
Slide 34
Slide 34 text
perception of speed
Slide 35
Slide 35 text
No content
Slide 36
Slide 36 text
first 12 products measure to discover what works best for you
Slide 37
Slide 37 text
how?
Slide 38
Slide 38 text
universal rendering or isomorphic rendering
Slide 39
Slide 39 text
No content
Slide 40
Slide 40 text
No content
Slide 41
Slide 41 text
No content
Slide 42
Slide 42 text
react-dom
Slide 43
Slide 43 text
react-native
Slide 44
Slide 44 text
renderToString()
Slide 45
Slide 45 text
stage 2: javascript which then loads images, account information, etc. asynchronously
Slide 46
Slide 46 text
why?
Slide 47
Slide 47 text
prioritize user intent user wants to look at dresses, not account information
Slide 48
Slide 48 text
how?
Slide 49
Slide 49 text
first react takes over
Slide 50
Slide 50 text
No content
Slide 51
Slide 51 text
No content
Slide 52
Slide 52 text
No content
Slide 53
Slide 53 text
No content
Slide 54
Slide 54 text
No content
Slide 55
Slide 55 text
then it fills in the blanks • product images • account information • loved products • bag items • site footer
Slide 56
Slide 56 text
stage 3: everything else third party scripts, analytics, etc.
Slide 57
Slide 57 text
why?
Slide 58
Slide 58 text
progressive enhancement and good old fashioned respect
Slide 59
Slide 59 text
analytics
Slide 60
Slide 60 text
queue analytics events
Slide 61
Slide 61 text
redux middleware
Slide 62
Slide 62 text
No content
Slide 63
Slide 63 text
No content
Slide 64
Slide 64 text
phew
Slide 65
Slide 65 text
No content
Slide 66
Slide 66 text
app performance talk to me!
Slide 67
Slide 67 text
testing load times webpagetest, pagespeed insights, and your eyeballs get drunk on 12th main
Slide 68
Slide 68 text
testing app performance test on real devices
Slide 69
Slide 69 text
questions?
Slide 70
Slide 70 text
[email protected]
Slide 71
Slide 71 text
[email protected]