Gatsby

12 articles · all categories

5 articles from 2021 · show all

August 2021

Build simple backends with Gatsby Serverless Functions

Until recently adding a little backend to your Gatsby site meant 2 options: 1. Climbing the AWS learning curve 2. Rewrite with NextJS Now there's an /api directory 😱

June 2021

Hacking the React AST for fun and profit – #CodeWithSwiz ep34

This is hold my beer level of hackery. It didn't work but we learned lots in the process.

A fun security bug with static rendering – CodeWithSwiz #31

The flash of unlocked content is great fun for any paywall

May 2021

Build privacy-focused blazing fast tweet embeds – CodeWithSwiz 30

Twitter embeds every tweet on your page as an iframe. Loads 1.2MB of JavaScript, makes 20+ HTTP requests and uses 100+ DOM nodes. 💩

Twitter embeds without JavaScript, pt1 – #CodeWithSwiz 29

Continuing our quest for better Lighthouse scores, more reader privacy, and less JavaScript we attacked the next biggest culprit 👉 Twitter.