SlideShare a Scribd company logo
Front end performance

on Shopify.com
BRYSON GILB E RT • @br yg
2
Stuff we’ll talk about
What you need to know about shopify.com
Where we are focusing our perf efforts
How we measure our progress
What’s new and exciting
3
4
5
About Shopify.com
Why is performance important to us?

Our audience is global

Fundamental aspect of a good user experience
How’s it made?

Ruby on Rails

No database
6
Marketing Assets
Ruby gem
Re-usable modules
Documentation & Styleguide
Fast and easy improvements across properties
7
Perf Basics
Server-side caching
Concatenate, minify, GZIP
CDN
8
IMAGES
9
10
375px viewport 1000px viewport
11
12
13
14
File Size Improvements
Total (All Images)
Before After
200 MB
240 MB
Most Improved PNG
Before After
107 KB
400 KB
15
Images – Required Reading
• Dave Newton, “Efficient Image Resizing with ImageMagick”

http://www.smashingmagazine.com/2015/06/efficient-image-resizing-
with-imagemagick/
• Sara Soueidan, “Styling SVG <use> Content with CSS”

http://tympanus.net/codrops/2015/07/16/styling-svg-use-content-css/
16
FONTS
UGH...
17
18
Fonts
• Basic approach to loading fonts – @font-face in CSS, no inlining, self-hosted
• Five weights – most pages only use three or four
• WOFF and WOFF2 only – no TTF, EOT, SVG
• Everything is terrible – No, really
• Bram Stein, “Web Fonts Performance”

https://speakerdeck.com/bramstein/web-fonts-performance
19
JAVAS CRI PT
20
Javascript
Concatenated, minified, GZIP
Third party stuff

Social, analytics, etc.
A/B testing
21
Javascript – what next?
Profile and optimize our first-party scripts
A/B test server-side whenever possible
Third-party scripts: 🔥🔥🔥
22
MEASU REME NT
23
24
25
26
Measurement
Automatic and manual testing
Snapshots and RUM (Real User Monitoring)
Keeps you honest
Performance budgets
27
Perf Budgets – Required Reading
• Tim Kadlec

http://timkadlec.com/2013/01/setting-a-performance-budget/

http://timkadlec.com/2014/11/performance-budget-metrics/
• Katie Kovalcin, “Designing with a performance budget”

http://cognition.happycog.com/article/designing-with-a-performance-budget
• Lara Hogan, Designing for Performance

http://designingforperformance.com/
• SpeedCurve

https://speedcurve.com/
• New Relic

http://newrelic.com/
28
WHAT’S NE XT?
29
Things we’re excited about
HTTP/2

Biggest potential change for web perf since… ever?

We’re halfway there with HTTPS + modules


Resource Hints

dns-prefetch and preconnect implemented and testing


Better ways to load fonts

The status quo is The Worst™
30
How we’re going to keep improving
Built-in performance wherever possible

Automatic image optimization

Re-usable modules

Server-side speed

CDN
Culture of performance

Sharing knowledge and experiences

Documentation

FED Talks

Design process
Testing & budgets
Challenge past assumptions
Thanks.
BRYSON GILB E RT • @br yg

More Related Content

PPTX
Steve Bailey — Core Web Vitals & Roadblocks to Success
PPTX
Google Core Web Vitals - Webinar
PPT
David Szetela — PPC vs SEO
PDF
Core Web Vitals: Google New Ranking Factor
PDF
Google Core Web Vitals & Roadblocks to Success
PDF
Boosting your conversion rate through web performance improvements
PDF
Web vitals are vitals - Aymen Loukil
PPTX
Velocity NY - How to Measure Revenue in Milliseconds
Steve Bailey — Core Web Vitals & Roadblocks to Success
Google Core Web Vitals - Webinar
David Szetela — PPC vs SEO
Core Web Vitals: Google New Ranking Factor
Google Core Web Vitals & Roadblocks to Success
Boosting your conversion rate through web performance improvements
Web vitals are vitals - Aymen Loukil
Velocity NY - How to Measure Revenue in Milliseconds

What's hot (20)

PDF
Lighthouse custom audits - London Web Performance 2019
PDF
Web performance tools @ WebPerf.camp 2016
PPTX
PPT
[Da Nang Scrum Breakfast] Dealing with Technical Debt
PDF
April 9, 2015 Meetup: A deep dive into site maps and wireframes
PDF
Don't lose revenue. Go viral with no downtime.
PPTX
MOB PROGRAMMING
PPTX
Wordcamp 2017-toronto-sam lalonde
PPTX
WordPress Site Speed & Performance - WPMIA Meetup
PPTX
The Small Things That Add Up: How to Find What Design Factors Influence Conve...
PPTX
Shop.org 2017 Tech talk website speed for ecommerce why it matters and how to...
PPTX
Fundamentals of Premum Plugin Development
PPTX
SEO Tune Up: Technical and Performance
PDF
Maintaining Retainers as a WordPress Developer
PPTX
Improve Your Site With A Real-time Core Web Vitals View
PDF
SiteGround Affiliate Area: The Toolbox for your Affiliate Success
PDF
It's the Little Things: Creating a Delightful WordPress Experience for Your C...
PDF
Custom blog plugins by ben edwards
PPTX
Fit For the Future
PDF
Success case
Lighthouse custom audits - London Web Performance 2019
Web performance tools @ WebPerf.camp 2016
[Da Nang Scrum Breakfast] Dealing with Technical Debt
April 9, 2015 Meetup: A deep dive into site maps and wireframes
Don't lose revenue. Go viral with no downtime.
MOB PROGRAMMING
Wordcamp 2017-toronto-sam lalonde
WordPress Site Speed & Performance - WPMIA Meetup
The Small Things That Add Up: How to Find What Design Factors Influence Conve...
Shop.org 2017 Tech talk website speed for ecommerce why it matters and how to...
Fundamentals of Premum Plugin Development
SEO Tune Up: Technical and Performance
Maintaining Retainers as a WordPress Developer
Improve Your Site With A Real-time Core Web Vitals View
SiteGround Affiliate Area: The Toolbox for your Affiliate Success
It's the Little Things: Creating a Delightful WordPress Experience for Your C...
Custom blog plugins by ben edwards
Fit For the Future
Success case
Ad

Similar to Front end performance on Shopify.com (20)

PDF
Scalability and performance for e commerce
PDF
Front-End Performance Checklist 2020
PPTX
T3CMD19 - Day 2 - Performance
PPTX
Best practices to optimize commerce site performance [webinar slides]
PPT
Keys To World-Class Retail Web Performance - Expert tips for holiday web read...
PPTX
A (Fairly) Complete Guide to Performance Budgets [SmashingConf SF 2023]
PPT
Keys To World-Class Retail Web Performance - Expert tips for holiday web read...
PPTX
Performance Budgets for the Real World by Tammy Everts
PPTX
Website Performance
PDF
Web Performance & You - HighEdWeb Arkansas Version
PDF
Designers Guide to Web Performance Yotta 2013
PDF
A Designer's Guide to Web Performance
PDF
Web performance e-book
PDF
Measuring Web Performance - HighEdWeb Edition
PPTX
2021 Chrome Dev Summit: Web Performance 101
PDF
PAC 2019 virtual Mark Tomlinson
KEY
Windycityrails page performance
PDF
Performance Budgets: Using APM Performance Data to Drive Decisions on Design ...
PDF
Improving frontend performance
PDF
7 secrets of performance oriented front end development services
Scalability and performance for e commerce
Front-End Performance Checklist 2020
T3CMD19 - Day 2 - Performance
Best practices to optimize commerce site performance [webinar slides]
Keys To World-Class Retail Web Performance - Expert tips for holiday web read...
A (Fairly) Complete Guide to Performance Budgets [SmashingConf SF 2023]
Keys To World-Class Retail Web Performance - Expert tips for holiday web read...
Performance Budgets for the Real World by Tammy Everts
Website Performance
Web Performance & You - HighEdWeb Arkansas Version
Designers Guide to Web Performance Yotta 2013
A Designer's Guide to Web Performance
Web performance e-book
Measuring Web Performance - HighEdWeb Edition
2021 Chrome Dev Summit: Web Performance 101
PAC 2019 virtual Mark Tomlinson
Windycityrails page performance
Performance Budgets: Using APM Performance Data to Drive Decisions on Design ...
Improving frontend performance
7 secrets of performance oriented front end development services
Ad

Recently uploaded (20)

PDF
WOOl fibre morphology and structure.pdf for textiles
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Chapter 5: Probability Theory and Statistics
PPTX
A Presentation on Artificial Intelligence
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
OMC Textile Division Presentation 2021.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
August Patch Tuesday
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Hybrid model detection and classification of lung cancer
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PPTX
Tartificialntelligence_presentation.pptx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
NewMind AI Weekly Chronicles - August'25-Week II
WOOl fibre morphology and structure.pdf for textiles
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Chapter 5: Probability Theory and Statistics
A Presentation on Artificial Intelligence
Building Integrated photovoltaic BIPV_UPV.pdf
OMC Textile Division Presentation 2021.pptx
Unlocking AI with Model Context Protocol (MCP)
August Patch Tuesday
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Hybrid model detection and classification of lung cancer
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
Tartificialntelligence_presentation.pptx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Enhancing emotion recognition model for a student engagement use case through...
Encapsulation_ Review paper, used for researhc scholars
Assigned Numbers - 2025 - Bluetooth® Document
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
NewMind AI Weekly Chronicles - August'25-Week II

Front end performance on Shopify.com

  • 1. Front end performance
 on Shopify.com BRYSON GILB E RT • @br yg
  • 2. 2 Stuff we’ll talk about What you need to know about shopify.com Where we are focusing our perf efforts How we measure our progress What’s new and exciting
  • 3. 3
  • 4. 4
  • 5. 5 About Shopify.com Why is performance important to us?
 Our audience is global
 Fundamental aspect of a good user experience How’s it made?
 Ruby on Rails
 No database
  • 6. 6 Marketing Assets Ruby gem Re-usable modules Documentation & Styleguide Fast and easy improvements across properties
  • 9. 9
  • 11. 11
  • 12. 12
  • 13. 13
  • 14. 14 File Size Improvements Total (All Images) Before After 200 MB 240 MB Most Improved PNG Before After 107 KB 400 KB
  • 15. 15 Images – Required Reading • Dave Newton, “Efficient Image Resizing with ImageMagick”
 http://www.smashingmagazine.com/2015/06/efficient-image-resizing- with-imagemagick/ • Sara Soueidan, “Styling SVG <use> Content with CSS”
 http://tympanus.net/codrops/2015/07/16/styling-svg-use-content-css/
  • 17. 17
  • 18. 18 Fonts • Basic approach to loading fonts – @font-face in CSS, no inlining, self-hosted • Five weights – most pages only use three or four • WOFF and WOFF2 only – no TTF, EOT, SVG • Everything is terrible – No, really • Bram Stein, “Web Fonts Performance”
 https://speakerdeck.com/bramstein/web-fonts-performance
  • 20. 20 Javascript Concatenated, minified, GZIP Third party stuff
 Social, analytics, etc. A/B testing
  • 21. 21 Javascript – what next? Profile and optimize our first-party scripts A/B test server-side whenever possible Third-party scripts: 🔥🔥🔥
  • 23. 23
  • 24. 24
  • 25. 25
  • 26. 26 Measurement Automatic and manual testing Snapshots and RUM (Real User Monitoring) Keeps you honest Performance budgets
  • 27. 27 Perf Budgets – Required Reading • Tim Kadlec
 http://timkadlec.com/2013/01/setting-a-performance-budget/
 http://timkadlec.com/2014/11/performance-budget-metrics/ • Katie Kovalcin, “Designing with a performance budget”
 http://cognition.happycog.com/article/designing-with-a-performance-budget • Lara Hogan, Designing for Performance
 http://designingforperformance.com/ • SpeedCurve
 https://speedcurve.com/ • New Relic
 http://newrelic.com/
  • 29. 29 Things we’re excited about HTTP/2
 Biggest potential change for web perf since… ever?
 We’re halfway there with HTTPS + modules 
 Resource Hints
 dns-prefetch and preconnect implemented and testing 
 Better ways to load fonts
 The status quo is The Worst™
  • 30. 30 How we’re going to keep improving Built-in performance wherever possible
 Automatic image optimization
 Re-usable modules
 Server-side speed
 CDN Culture of performance
 Sharing knowledge and experiences
 Documentation
 FED Talks
 Design process Testing & budgets Challenge past assumptions
  • 31. Thanks. BRYSON GILB E RT • @br yg