@bobylito
Plugins can optimize assets - image example
PNG full resolution
Megabytes
JPEG with just enough quality to look
great
Kilobytes
Slide 23
Slide 23 text
@bobylito
Plugins can optimize assets - image example
Full resolution
Too much for mobile or
Too small for desktop
Different sizes for each screen
Perfect everywhere
Slide 24
Slide 24 text
@bobylito
Generating pages
Slide 25
Slide 25 text
@bobylito
Create pages API - Two parts
● Extension point: createPages
● Function: createPage
Slide 26
Slide 26 text
@bobylito
Create pages API - example
Slide 27
Slide 27 text
@bobylito
Bringing everything together
Slide 28
Slide 28 text
@bobylito
Flip the model - get new API powers
Slide 29
Slide 29 text
@bobylito
Is Gatsby right for your next project?
Slide 30
Slide 30 text
@bobylito
Why not choose Gatsby.js?
● Choices / ecosystem
● Magic
● You have mastered something else
Slide 31
Slide 31 text
@bobylito
Bad reasons to choose Gatsby.js or not?
● X Y Z are using it
● Tech: React, GraphQL
Slide 32
Slide 32 text
@bobylito
Why choose Gatsby.js?
● Best practices built-in
● You’re building a web app
● Well documented
● Community
Slide 33
Slide 33 text
@bobylito
Thanks!
Find me on twitter
@bobylito
Looking for a JS
freelancer:
[email protected]
Slide 34
Slide 34 text
@bobylito
Links and resources
● My talk about JSDoc in static website generators
● Playlist Detective, a project I built with Gatsby and Algolia
● Create pages API
● Gatsby image plugin
● Gatsby plugin repository