SlideShare a Scribd company logo
Gatsby v2:
Faster build times, Guess.js, and More!
Webinar
September 27, 2018
Welcome
Gatsby v2: Faster build times, guess.js, and more!
Presenters
Linda Watkins
Director of
Marketing
Gatsby
Kyle Mathews
CEO & Co-founder
Gatsby
Dustin Schau
Software Engineer
Gatsby
Panelists
Sam Bhagwat
Co-founder & Head of Enterprise
Gatsby
Jason Lengstorf
Head of Developer Relations
Gatsby
Amberley Romo
Software Engineer
Gatsby
Overview
How to use React for
*websites*?
Is there a tool that can solve
similar problems as Drupal but
with modern engineering
practices?
“All fast websites are alike, but
slow websites are slow in
different ways.”
- Leo Tolstoy (sort of)
Over 50% of people will
abandon a mobile site if it takes
more than 3 seconds to load
Why Gatsby?
Build blazing fast, modern
apps and websites with
React
Modern JavaScript and CSS
stack so development is fun
and productive
The Modern Web
● React
● webpack
● babel
● GraphQL
● Modern Javascript
● CSS-In-JS
Performance is baked in
to the framework
Gatsby makes it *hard*
to build slow sites
How to solve the “integration
problem” of decoupled CMSs
Traditional Monolithic CMS
Presentation Layer
Content Backend
Unbundling:
The Headless CMS
Decoupled CMS
Presentation Layer
Headless CMS
Gatsby:
The “presentation layer” for the web
Decoupled CMS
Presentation Layer
Headless CMS
GraphQL integration layer
An Integration layer
lets you...
...use the best tool for the job
...experiment with different CMSes
without needing to change the
development workflow
There are now source plugins for:
● Drupal
● Contentful
● WordPress
● Airtable
● Trello
● Google Spreadsheets
● and dozens more!
Gatsby “glues” data and
code and compiles it into the
fastest website possible
The Future is Fast
Get performance out of the box
Bring Your Own Content
● CMS (WordPress, Drupal, Contentful, etc)
● Static files
● Markdown
● Database(s)
Instantly Scalable
Hosted on the edge
~26k GitHub stars
~600k NPM downloads/month
1133 contributors
Reactjs.org built with Gatsby
Use Cases
Stitch Fix
Braun
SendGrid: Docs Site
Yaaaaassss!
Gatsby can handle apps with:
● User authentication
● Dynamic data
● Asynchronous requests
● Ecommerce
● Full-blown SaaS
Meetfabric.com: Web App
Web App: store.gatsby.org
Case Study:
Hopper.com
Hopper.com
Website built by Narative.co
● Website was outdated
● Hard time recruiting people
● Wanted to use React
Hopper.com
● Fast! 58% improvement in page load times
● Instant navigation (from 2s subsequent
page loads)
● 1.24M pageviews/month
‘Wow, we finally have a
world-class website’
-Hopper Investors
Improving Gatsby
Performance
Dustin Schau
Gatsby v2 is faster!
Faster sites
Faster builds
Gatsby v2: Faster build times, guess.js, and more!
Gatsby v2: Faster build times, guess.js, and more!
Why?
● React 16
● @reach/router
Name Size %
React 49.8kb -> 34.8 kb 30%
react-router ->
@reach/router
18.4kb -> 6kb 67%
78.5kb -> 53.9kb
31% size reduction
Gatsby v2: Faster build times, guess.js, and more!
Small wins add up
Build tooling is faster
Gatsby v2: Faster build times, guess.js, and more!
New speed record
100k pages = 75.38 seconds
Webpack 1 -> Webpack 4
Babel 6 -> Babel 7
… and!
Gatsby
Gatsby
v1
Build 50s
Develop 30s
v2
25s
12s
Up to 75% improvement!
Gatsby v2: Faster build times, guess.js, and more!
Improving Accessibility
Gatsby v2 is more
accessible
@reach/router
New router from Ryan Florence
Why should you care?
Your users care
Gatsby v2 routes are accessible
by default
Gatsby v2: Faster build times, guess.js, and more!
Smaller package + better
accessibility + simplified APIs
Gatsby v2: Faster build times, guess.js, and more!
import { Link } from 'gatsby';
export default function IndexPage() {
return (
<Link to="/about">About</Link>
)
}
Keep using the Link component
That’s it.
Upgrade.
It’s easy.
Guide
Highlights of the v2
release
Power without the pain
with
performance built-in
React 16
Complete rewrite w/ new features!
● Fragments
● error boundaries
● Portals
● support for custom DOM attributes
● reduced file size
https://reactjs.org/blog/2017/09/26/react-
v16.0.html
React 16
● Dramatic improvements to build times
● New code splitting algorithm
● New first-class support for lazy-loading
CSS chunks.
webpack 4
Babel helps ensure the JavaScript you write
works across different browsers
● Improved build speed
● automatic polyfilling
● Support for more syntax e.g. TypeScript
and JSX Fragments
Babel 7
Natively Query GraphQL APIs
Query for data in
components with <StaticQuery />
How can I query for data in my components?
Now you can with <StaticQuery /> component
Improvements to gatsby-
plugin-offline
Bug fixes & handles more edge cases
Add tracing support
Guess.js + Gatsby
Data-driven speed improvements
Use Analytics data + machine learning to speed
prefetching data needed for the next click
Gatsby swag!!
store.gatsbyjs.org
New Docs IA
Site showcase
Upgrade to v2!
Migration Guide:
https://www.gatsbyjs.org/docs/migrating-from-v1-to-v2/
Get Started:
https://www.gatsbyjs.org/docs/
Thank you!

More Related Content

PPTX
The Future Is The Cloud
PDF
Build Your Blazing Fast Site with Gatsby and WordPress @ WordSesh by Muhammad...
PDF
JAMstack
PDF
JAMstack with gatsby, contentful and netlify aka the dream stack
PDF
Blazing Fast eCommerce with Gatsby, WordPress, and WooCommerce by Muhammad Mu...
PPTX
Core web Vitals: Web Performance and Usability
PDF
Core Web Vitals - The Modern Web Experience
PPTX
Google Core Web Vitals - Webinar
The Future Is The Cloud
Build Your Blazing Fast Site with Gatsby and WordPress @ WordSesh by Muhammad...
JAMstack
JAMstack with gatsby, contentful and netlify aka the dream stack
Blazing Fast eCommerce with Gatsby, WordPress, and WooCommerce by Muhammad Mu...
Core web Vitals: Web Performance and Usability
Core Web Vitals - The Modern Web Experience
Google Core Web Vitals - Webinar

What's hot (20)

PPTX
Introduction To Gatsbyjs
PDF
Demystifying Web Vitals
PDF
Web: the future is now (GUADEC 2013)
PPTX
Using the WordPress REST API and Gatsby.js
PDF
The Thick Front-End
PDF
Reactjs workshop (1)
PDF
Jamstack OPO #15 meetup slides: Let's talk about SEO and Jamstack
PDF
Introduction to ReactJS
PPTX
Website development &amp; it's trends
PPTX
Steve Bailey — Core Web Vitals & Roadblocks to Success
PPTX
Cdn optimizely and how latency affects load speed
ODP
Making Web Sites Fast - Greg Keith
PDF
Using WordPress with Static Site Generators by Muhammad Muhsin and Jason Bahl...
PPTX
Use cases of Grails in web applications
PPT
Bootstrapping angular js with bower grunt yeoman
KEY
Google Apps @ Cambridge - What we did
PPTX
Headless CMS for Digital Agencies - Case Study by Andy Thompson
PPTX
Web vitals
PPTX
Drupal Effect on High Performance Websites
PDF
Using Presto for web-based GUI for green screens
Introduction To Gatsbyjs
Demystifying Web Vitals
Web: the future is now (GUADEC 2013)
Using the WordPress REST API and Gatsby.js
The Thick Front-End
Reactjs workshop (1)
Jamstack OPO #15 meetup slides: Let's talk about SEO and Jamstack
Introduction to ReactJS
Website development &amp; it's trends
Steve Bailey — Core Web Vitals & Roadblocks to Success
Cdn optimizely and how latency affects load speed
Making Web Sites Fast - Greg Keith
Using WordPress with Static Site Generators by Muhammad Muhsin and Jason Bahl...
Use cases of Grails in web applications
Bootstrapping angular js with bower grunt yeoman
Google Apps @ Cambridge - What we did
Headless CMS for Digital Agencies - Case Study by Andy Thompson
Web vitals
Drupal Effect on High Performance Websites
Using Presto for web-based GUI for green screens
Ad

Similar to Gatsby v2: Faster build times, guess.js, and more! (20)

PDF
Top 8 react static site generators for 2020
PPTX
10 things you can do to speed up your web app today 2016
PDF
GraphQL Bangkok Meetup 6.0
PPTX
Build Fast WordPress Site With Gatsby
PDF
Isomorphic React Applications: Performance And Scalability
PDF
Top React Static Site Generators for 2022.pdf
PDF
SUGMEA - Sitecore JSS and Performance Optimization - Alex Shyba - Altudo
PPTX
Building a website without a webserver on Azure
PDF
#Webperf Choreography
PDF
Performance and Scalability Art of Isomorphic React Applications
PPTX
Web summit.pptx
PDF
Best Practices - By Lofi Dewanto
PDF
Pump up the JAM with Gatsby
PPTX
Vitali zaidman Do You Need Server Side Rendering? What Are The Alternatives?
PDF
There Are No “Buts” in Progressive Enhancement [Øredev 2015]
PPTX
A Day Building Fast, Responsive, Extensible Single Page Applications
PPTX
Developing JavaScript Widgets
PDF
Word press with react – implementing headless wordpress with reactjs converted
PDF
Demystifying JavaScript & SEO
PPT
Make Drupal Run Fast - increase page load speed
Top 8 react static site generators for 2020
10 things you can do to speed up your web app today 2016
GraphQL Bangkok Meetup 6.0
Build Fast WordPress Site With Gatsby
Isomorphic React Applications: Performance And Scalability
Top React Static Site Generators for 2022.pdf
SUGMEA - Sitecore JSS and Performance Optimization - Alex Shyba - Altudo
Building a website without a webserver on Azure
#Webperf Choreography
Performance and Scalability Art of Isomorphic React Applications
Web summit.pptx
Best Practices - By Lofi Dewanto
Pump up the JAM with Gatsby
Vitali zaidman Do You Need Server Side Rendering? What Are The Alternatives?
There Are No “Buts” in Progressive Enhancement [Øredev 2015]
A Day Building Fast, Responsive, Extensible Single Page Applications
Developing JavaScript Widgets
Word press with react – implementing headless wordpress with reactjs converted
Demystifying JavaScript & SEO
Make Drupal Run Fast - increase page load speed
Ad

More from Gatsbyjs (6)

PDF
Gatsby Themes: Better, Faster, Flexible-er
PPTX
Gatsby Preview: Spend More Time Creating
PPTX
Building Dynamic Apps With Gatsby
PPTX
How To Explain Gatsby To Clients
PPTX
Delicious Simplicity: Gatsby Is A Gamechanger
PDF
Rise of the Content Mesh: Webcast with Contentful and Gatsby
Gatsby Themes: Better, Faster, Flexible-er
Gatsby Preview: Spend More Time Creating
Building Dynamic Apps With Gatsby
How To Explain Gatsby To Clients
Delicious Simplicity: Gatsby Is A Gamechanger
Rise of the Content Mesh: Webcast with Contentful and Gatsby

Recently uploaded (20)

PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
Cloud computing and distributed systems.
PPT
Teaching material agriculture food technology
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Approach and Philosophy of On baking technology
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
KodekX | Application Modernization Development
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Cloud computing and distributed systems.
Teaching material agriculture food technology
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Review of recent advances in non-invasive hemoglobin estimation
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Diabetes mellitus diagnosis method based random forest with bat algorithm
Reach Out and Touch Someone: Haptics and Empathic Computing
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Approach and Philosophy of On baking technology
Understanding_Digital_Forensics_Presentation.pptx
Network Security Unit 5.pdf for BCA BBA.
Unlocking AI with Model Context Protocol (MCP)
NewMind AI Weekly Chronicles - August'25 Week I
KodekX | Application Modernization Development
Dropbox Q2 2025 Financial Results & Investor Presentation

Gatsby v2: Faster build times, guess.js, and more!

Editor's Notes

  • #19: http://houseplansandmore.com/projectplans/projectplan097D-9069.aspx
  • #38: Hello Fabric/ gatsby store
  • #39: Hello Fabric/ gatsby store