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
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Ianfeather
September 28, 2014
Technology
0
130
Establishing Performance Contexts
Segmenting your site to target specific user performance contexts
Ianfeather
September 28, 2014
Tweet
Share
More Decks by Ianfeather
See All by Ianfeather
Building Resilient Front End Systems (Smashingconf)
ianfeather
0
130
Building Resilient Frontend Systems (All Day Hey)
ianfeather
1
550
Building Resilient Frontend Systems (@frontendne)
ianfeather
1
200
Testing Without Assertions
ianfeather
0
150
Building Resilient Frontend Systems - NationJS
ianfeather
0
210
Reducing complexity with a Component API
ianfeather
0
210
Web Fonts and Performance
ianfeather
0
230
Other Decks in Technology
See All in Technology
組織のSREを推進するためのPlatform EngineeringとEKS / Platform Engineering and EKS to drive SRE in your organization
chmikata
0
170
脱・コピペ!自分で調べて書くK8sマニフェスト
devops_vtj
0
110
LY Tableauでの Tableau x AIの実践 (at Tableau Now! - 2026-02-26)
yoshitakaarakawa
0
1.2k
Datadog Cloud Cost Management で実現するFinOps
taiponrock
PRO
0
100
問い合わせ自動化の技術的挑戦
recruitengineers
PRO
2
110
Master Dataグループ紹介資料
sansan33
PRO
1
4.4k
なぜAIは組織を速くしないのか 令和の腑分け
sugino
83
53k
AI活用を"目的"にしたら、データの本質が見えてきた - Snowflake Intelligence実験記 / chasing-ai-finding-data
pei0804
0
870
Serverless Agent Architecture on Azure / serverless-agent-on-azure
miyake
1
120
類似画像検索モデルの開発ノウハウ
lycorptech_jp
PRO
0
120
LINEアプリ開発のための Claude Code活用基盤の構築
lycorptech_jp
PRO
1
1.3k
APMの世界から見るOpenTelemetryのTraceの世界 / OpenTelemetry in the Java
soudai
PRO
0
220
Featured
See All Featured
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
62
50k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.1k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
We Are The Robots
honzajavorek
0
190
Git: the NoSQL Database
bkeepers
PRO
432
66k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
620
Measuring & Analyzing Core Web Vitals
bluesmoon
9
770
sira's awesome portfolio website redesign presentation
elsirapls
0
170
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
2.3k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
190
Writing Fast Ruby
sferik
630
62k
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