Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Establishing Performance Contexts
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Ianfeather
September 28, 2014
Technology
140
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Establishing Performance Contexts
Segmenting your site to target specific user performance contexts
Ianfeather
September 28, 2014
More Decks by Ianfeather
See All by Ianfeather
Building Resilient Front End Systems (Smashingconf)
ianfeather
0
140
Building Resilient Frontend Systems (All Day Hey)
ianfeather
1
570
Building Resilient Frontend Systems (@frontendne)
ianfeather
1
210
Testing Without Assertions
ianfeather
0
150
Building Resilient Frontend Systems - NationJS
ianfeather
0
220
Reducing complexity with a Component API
ianfeather
0
210
Web Fonts and Performance
ianfeather
0
240
Other Decks in Technology
See All in Technology
AI-DLCを活用した高品質・安全なAI駆動開発実践 / AI Driven Development
yoshidashingo
1
380
Rancherの紹介&Update情報(RancherJP Online Meetup #09)
yoshiyuki_kono
0
120
【5分でわかる】セーフィー エンジニア向け会社紹介
safie_recruit
0
50k
Djangoユーザが知っ得なPostgreSQL機能 - 設計の選択肢を増やす / Djang-use-PostgreSQL
soudai
PRO
0
200
TypeScript Compiler APIとPHP-Parserを活用し、TypeScriptとPHPで型を共有する
shuta13
0
360
React、まだ楽しくて草
uhyo
7
4.1k
SIer20年! 培ったスキルがスタートアップで輝く時
shucho0103
0
480
AI活用を推進するために ファインディが下した、一つの小さな決断
starfish719
0
260
タクシーアプリ『GO』の実践的データ活用
mot_techtalk
3
160
ブロックチェーン / Blockchain
ks91
PRO
0
110
コードレビューを制するチームがソフトウェアデリバリーのフローを制す / Beyond Code Review: Distributing Its Responsibilities Across the SDLC
mtx2s
4
1.2k
10倍の生産性を実現するAI駆動並列エージェントのすべて
kumaiu
4
820
Featured
See All Featured
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
11k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
190
Faster Mobile Websites
deanohume
310
31k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.4k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
23k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
22k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.2k
Paper Plane (Part 1)
katiecoart
PRO
0
8.5k
Building an army of robots
kneath
306
46k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
570
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
320
Docker and Python
trallard
47
3.9k
Transcript
Establishing performance contexts Ian Feather - @ianfeather
Performance at ! !
We don’t know how important speed is to our users
at a given time
None
None
None
None
It’s not that hard to get fast
It’s not that hard to get fast
It’s not that hard to get fast
It’s not that hard to get fast
None
You can use these techniques to optimise (to a certain
extent)
None
Total: weight: 674 KB ! Until you scroll down
the page…
None
!
Performance vs Design is all about compromise
Performance vs Design is all about compromise
You can only get as fast as the design allows
Performance Contexts
We have to accept there are things we don’t know
We are constantly required to make assumptions…
Assumption 1: Users on mobile devices want a different experience
to those on desktop
Assumption 1: Users on mobile devices want a different experience
to those on desktop Viewport !== context Viewport !== network
Assumption 2: Users want every site to load within X
seconds
None
None
None
None
Assumption 2: Users want every site to load within X
seconds Users want a site to load in-line with their expectations
Serving the same experience across multiple unknowns is a compromise
Currently we don’t have the tools to do anything about
this
But… ! The Web is for everyone
How can we determine a user’s performance context?
Why not ask them?
Hostel Mode
http://blog.chriszacharias.com/page-weight-matters
None
“We even burned through our monthly data plans in 40
minutes.”
Light Mode Default
Segmenting in to two ‘modes’ can be very powerful but…
Are we still making assumptions?
None
Did we ever ask users with retina screens if they
want a slower experience?
And are we still compromising?
We can’t leverage the best of the platform… whilst limiting
page weight.
None
Light Mode Default
Light Mode Default Enhanced
Segmenting allows us to design focused User Experiences
Asking the user
None
None
None
How could this look?
None
None
None
None
Implementation Advice
Don’t build three different websites!
Abstract out the development complexity
if('querySelector' in document && 'localStorage' in window && 'addEventListener' in
window && 'classList' in document.documentElement && lpHostelMode() !== "light") { } Global feature switches
<div class=“my-module”> <h1>{{ moduleTitle }}</h1> {{ img_tag(moduleImage) }} <p>{{ moduleContent
}}</p> </div> Authoring must stay the same
def img_tag(image_url, opts={}) return if @hostelMode ! image_tag(image_url, opts) end
Use helpers to abstract switches
Stateless vs Stateful
Consider the preloader
Future: Could the browser expose these user options?
Recap
You can only get as fast as the design allows
Your application may be entirely inaccessible to parts of the
world
Segmenting the user experience can be very powerful
Don’t guess. Ask.
Don’t do it at the expense of complexity
Thank you Ian Feather - @ianfeather
Creative Commons ! ! ! Arrano : https://flic.kr/p/4WjZDf Patrick Quinn-Graham
(thepatrick): https://flic.kr/p/Tk4Ha Leonardo Rizzi (L1010913): https://flic.kr/p/cVRiZm