SlideShare a Scribd company logo
1 of 18
Download to read offline
by Maedah Batool
OPTIMIZING YOUR GATSBY
SITE FOR PRODUCTION
I am a WordPress Core Contributor, Open-source Journalist, Developer
and a teacher. Maintainer of #GirlsWhoCode and #ReactJSLadies local
meetup chapters.
While working as a Content Strategist I’m a featured/published author
at Scotch.io, TorqueMag, Envato Tuts+, SitePoint, Creative Market, etc.
Also one of the Marketing Representatives at the official Make
#WordPressMarketingTeam.
I created a tech-training startup called FinkTanks through which I’ve
taught 5,500+ girls how to code with WordPress.
I collaborate with the Nodejs Foundation Community Committee on
the Outreach Initiative.
You can find me on Twitter sharing dev tips @MaedahBatool →
OPEN-SOURCE DEVELOPER ADVOCATE & COMMUNITY PROGRAM MANAGER
👋 HELLO

MAEDAH BATOOL
FOLLOW ME ON TWITTER
@MaedahBatool
" #GirlDevMinute Series
🧐 Development tips, tricks, etc.
👀 Find rants, jokes, and whatnotAnd on GitHub, MaedahBatool.com, LinkedIn …
🤔 

BASICS
• Development
• Staging
• Production
PHASES OF

WEBSITE DEVELOPMENT
React.js · Vue.js · Angular · Next.js · Gatsby.js
OPTIMIZING
GATSBY.JS SITES
FOR PRODUCTION
Gatsby is a free and open-source
React.js based framework that
helps developers build blazing
fast websites and apps.
THE
GATSBY.JS
🤔 

RECAP
• TALK: https://Maedah.dev/WordSeshMay2019
• TUTORIAL: https://Maedah.dev/wpgatsbyjs
INTEGRATING

GATSBY + WORDPRESS
You have to ensure that search engines like Google can
understand your site's architecture and index it intelligently.
That’s what sitemaps do.
SITEMAPS
Making your site content visually appealing is quite critical. Media
elements like images, GIFs and videos help you in this respect.
But rendering these is a difficult thing to do.
VIDEOS
Writing web pages in markdown is a super easy programming practice.
If your site supports and reads through folders which have .md files,
that’s awesome.
MARKDOWN
GATSBY.JS
OPTIMIZATION FOR SITE PRODUCTION
Final build for production and deploying on services
like Netlify.
Build & Deploy
Generates a .xml file making your site content available
In subscribable format.
RSS feed
GATSBY.JS
OPTIMIZATION FOR SITE PRODUCTION
PLUGIN:
SITEMAPS
GATSBY-PLUGIN-SITEMAP
Main Plugin:
Install:
DETAILS ABOUT SITEMAPS IN GATSBY.JS SITE
SITE INFORMATION
Maintains a list of all pages to tell search engines like Google
about the organization of your site content.
INDEXING
Sitemaps tell the search engines about an unindexed
page to get it appropriately indexed.
EQUALLY IMPORTANT
For new and old sites. But new website needs a sitemap
since it is difficult for search engines to find posts and pages
of a new site.
ADDING

CUSTOM SITEMAPS
MARKDOWN
PAGES
PLUGIN: GATSBY-SOURCE-FILESYSTEM
Main Plugin:
Install:
Pre-Req. Plugin:
Install:
DETAILS ABOUT MARKDOWN IN GATSBY.JS SITE
READ .md Files
Gatsby plugins can read folders/files with markdown
and create pages from them.
SUPPORT FOR MARKDOWN
Is important since writing in markdown is always
easy of eyes, user friendly with less errors.
PROCESS
Reads files from filesystem. Transforms markdown to html
and frontmatter to data. Create page components.
ADDING

MARKDOWN PAGES
EMBEDDING
VIDEOS
PLUGIN: GATSBY-REMARK-EMBED-VIDEO
Main Plugin:
Install:
Pre-Req. Plugins:
•
DETAILS ABOUT EMBEDDING VIDEOS IN GATSBY.JS SITE
MEDIA FILES
Different web applications render media files especially
videos and GIFs differently.
EMBED IN MARKDOWN
Plugins helps you source videos from a variety of video
hosts like YouTube, Vimeo, Dailymotion, etc.
IMPORTANT ALERT
If you’re using the gatsby-remark-responsive-iframe plugin,
you have to ensure that the gatsby-remark-embed-video
plugin is defined first.
EMBEDDING

VIDEOS
PLUGIN:
RSS Feed
GATSBY-PLUGIN-FEED
Main Plugin:
Install:
Pre-Req. Plugins:
DETAILS ABOUT RSS FEED IN GATSBY.JS SITE
SUBSCRIBABLE CONTENT
Makes your site content easy to subscribe
through feed reader apps.
IMPLEMENTATION
Runs only in production builds and generates
a rss.xml file in the public folder.
CUSTOMIZE & CONFIGURE
Easy to customise solution and options with
Markdown.
ADDING

RSS Feed
FOLLOW ME ON TWITTER
@MaedahBatool
/MaedahBatool/WordSesh-Sept-2019
https://Maedah.dev/WDSlidesSep19
And on GitHub, MaedahBatool.com, LinkedIn …
QUESTIONS
"

More Related Content

Similar to Optimizing Gatsby.js Sites For Production

Kick start your career with WordPress
Kick start your career with WordPressKick start your career with WordPress
Kick start your career with WordPress
Jignasa Naik
 
Harness the power of wordpress
Harness the power of wordpressHarness the power of wordpress
Harness the power of wordpress
Justin Ferrell
 
Google Suppression Attack Lost Blogging Files
Google Suppression Attack Lost Blogging FilesGoogle Suppression Attack Lost Blogging Files
Google Suppression Attack Lost Blogging Files
Carl Ocab
 

Similar to Optimizing Gatsby.js Sites For Production (20)

WordPress SEO 101
WordPress SEO 101WordPress SEO 101
WordPress SEO 101
 
Vdomainhosting wordpress-seo-checklist20151016e
Vdomainhosting wordpress-seo-checklist20151016eVdomainhosting wordpress-seo-checklist20151016e
Vdomainhosting wordpress-seo-checklist20151016e
 
SEO for WordPress Blogs
SEO for WordPress BlogsSEO for WordPress Blogs
SEO for WordPress Blogs
 
.NET Foundation website suggestions for improvement
.NET Foundation website suggestions for improvement.NET Foundation website suggestions for improvement
.NET Foundation website suggestions for improvement
 
Practical SEO for WordPress Bloggers
Practical SEO for WordPress BloggersPractical SEO for WordPress Bloggers
Practical SEO for WordPress Bloggers
 
Kick start your career with WordPress
Kick start your career with WordPressKick start your career with WordPress
Kick start your career with WordPress
 
Building and Maintaining Genealogical Websites
Building and Maintaining Genealogical WebsitesBuilding and Maintaining Genealogical Websites
Building and Maintaining Genealogical Websites
 
WordCamp Netherlands Keynote
WordCamp Netherlands KeynoteWordCamp Netherlands Keynote
WordCamp Netherlands Keynote
 
WordPress and Google Analytics: Websites, Blogs, and Analytics Made Simple(r)...
WordPress and Google Analytics: Websites, Blogs, and Analytics Made Simple(r)...WordPress and Google Analytics: Websites, Blogs, and Analytics Made Simple(r)...
WordPress and Google Analytics: Websites, Blogs, and Analytics Made Simple(r)...
 
WordPress and Google Analytics: Websites, Blogs, and Analytics Made Simple(r)...
WordPress and Google Analytics: Websites, Blogs, and Analytics Made Simple(r)...WordPress and Google Analytics: Websites, Blogs, and Analytics Made Simple(r)...
WordPress and Google Analytics: Websites, Blogs, and Analytics Made Simple(r)...
 
WordPress SEO in 2014 - WordCamp Baltimore 2014
WordPress SEO in 2014 - WordCamp Baltimore 2014WordPress SEO in 2014 - WordCamp Baltimore 2014
WordPress SEO in 2014 - WordCamp Baltimore 2014
 
WordPress SEO 101 - Dayton 2016 WordCamp
WordPress SEO 101 - Dayton 2016 WordCampWordPress SEO 101 - Dayton 2016 WordCamp
WordPress SEO 101 - Dayton 2016 WordCamp
 
Optimising AJAX Applications for Organic Search
Optimising AJAX Applications for Organic SearchOptimising AJAX Applications for Organic Search
Optimising AJAX Applications for Organic Search
 
WordPress & SEO Love for Beginners
WordPress & SEO Love for BeginnersWordPress & SEO Love for Beginners
WordPress & SEO Love for Beginners
 
WordPress on Amazon Web Services Meetup
WordPress on Amazon Web Services Meetup WordPress on Amazon Web Services Meetup
WordPress on Amazon Web Services Meetup
 
Kick start your career
Kick start your careerKick start your career
Kick start your career
 
BOOST YOUR WEBSITE TRAFFIC
BOOST YOUR WEBSITE TRAFFICBOOST YOUR WEBSITE TRAFFIC
BOOST YOUR WEBSITE TRAFFIC
 
World of WordPress
World of WordPressWorld of WordPress
World of WordPress
 
Harness the power of wordpress
Harness the power of wordpressHarness the power of wordpress
Harness the power of wordpress
 
Google Suppression Attack Lost Blogging Files
Google Suppression Attack Lost Blogging FilesGoogle Suppression Attack Lost Blogging Files
Google Suppression Attack Lost Blogging Files
 

Recently uploaded

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 

Recently uploaded (20)

[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 

Optimizing Gatsby.js Sites For Production

  • 1. by Maedah Batool OPTIMIZING YOUR GATSBY SITE FOR PRODUCTION
  • 2. I am a WordPress Core Contributor, Open-source Journalist, Developer and a teacher. Maintainer of #GirlsWhoCode and #ReactJSLadies local meetup chapters. While working as a Content Strategist I’m a featured/published author at Scotch.io, TorqueMag, Envato Tuts+, SitePoint, Creative Market, etc. Also one of the Marketing Representatives at the official Make #WordPressMarketingTeam. I created a tech-training startup called FinkTanks through which I’ve taught 5,500+ girls how to code with WordPress. I collaborate with the Nodejs Foundation Community Committee on the Outreach Initiative. You can find me on Twitter sharing dev tips @MaedahBatool → OPEN-SOURCE DEVELOPER ADVOCATE & COMMUNITY PROGRAM MANAGER 👋 HELLO
 MAEDAH BATOOL
  • 3. FOLLOW ME ON TWITTER @MaedahBatool " #GirlDevMinute Series 🧐 Development tips, tricks, etc. 👀 Find rants, jokes, and whatnotAnd on GitHub, MaedahBatool.com, LinkedIn …
  • 4. 🤔 
 BASICS • Development • Staging • Production PHASES OF
 WEBSITE DEVELOPMENT
  • 5. React.js · Vue.js · Angular · Next.js · Gatsby.js OPTIMIZING GATSBY.JS SITES FOR PRODUCTION
  • 6. Gatsby is a free and open-source React.js based framework that helps developers build blazing fast websites and apps. THE GATSBY.JS
  • 7. 🤔 
 RECAP • TALK: https://Maedah.dev/WordSeshMay2019 • TUTORIAL: https://Maedah.dev/wpgatsbyjs INTEGRATING
 GATSBY + WORDPRESS
  • 8. You have to ensure that search engines like Google can understand your site's architecture and index it intelligently. That’s what sitemaps do. SITEMAPS Making your site content visually appealing is quite critical. Media elements like images, GIFs and videos help you in this respect. But rendering these is a difficult thing to do. VIDEOS Writing web pages in markdown is a super easy programming practice. If your site supports and reads through folders which have .md files, that’s awesome. MARKDOWN GATSBY.JS OPTIMIZATION FOR SITE PRODUCTION
  • 9. Final build for production and deploying on services like Netlify. Build & Deploy Generates a .xml file making your site content available In subscribable format. RSS feed GATSBY.JS OPTIMIZATION FOR SITE PRODUCTION
  • 11. Main Plugin: Install: DETAILS ABOUT SITEMAPS IN GATSBY.JS SITE SITE INFORMATION Maintains a list of all pages to tell search engines like Google about the organization of your site content. INDEXING Sitemaps tell the search engines about an unindexed page to get it appropriately indexed. EQUALLY IMPORTANT For new and old sites. But new website needs a sitemap since it is difficult for search engines to find posts and pages of a new site. ADDING
 CUSTOM SITEMAPS
  • 13. Main Plugin: Install: Pre-Req. Plugin: Install: DETAILS ABOUT MARKDOWN IN GATSBY.JS SITE READ .md Files Gatsby plugins can read folders/files with markdown and create pages from them. SUPPORT FOR MARKDOWN Is important since writing in markdown is always easy of eyes, user friendly with less errors. PROCESS Reads files from filesystem. Transforms markdown to html and frontmatter to data. Create page components. ADDING
 MARKDOWN PAGES
  • 15. Main Plugin: Install: Pre-Req. Plugins: • DETAILS ABOUT EMBEDDING VIDEOS IN GATSBY.JS SITE MEDIA FILES Different web applications render media files especially videos and GIFs differently. EMBED IN MARKDOWN Plugins helps you source videos from a variety of video hosts like YouTube, Vimeo, Dailymotion, etc. IMPORTANT ALERT If you’re using the gatsby-remark-responsive-iframe plugin, you have to ensure that the gatsby-remark-embed-video plugin is defined first. EMBEDDING
 VIDEOS
  • 17. Main Plugin: Install: Pre-Req. Plugins: DETAILS ABOUT RSS FEED IN GATSBY.JS SITE SUBSCRIBABLE CONTENT Makes your site content easy to subscribe through feed reader apps. IMPLEMENTATION Runs only in production builds and generates a rss.xml file in the public folder. CUSTOMIZE & CONFIGURE Easy to customise solution and options with Markdown. ADDING
 RSS Feed
  • 18. FOLLOW ME ON TWITTER @MaedahBatool /MaedahBatool/WordSesh-Sept-2019 https://Maedah.dev/WDSlidesSep19 And on GitHub, MaedahBatool.com, LinkedIn … QUESTIONS "