PLAY PODCASTS
409: Our Own Script Injection

409: Our Own Script Injection

Chris and Stephen talk about how we use a Cloudflare Worker & HTMLRewriter to inject a very special <script tag into the previews of the Pens you work on. This script has a lot of important jobs so its presence is crucial, and getting it in there

CodePen Radio

September 16, 20250

Audio is streamed directly from the publisher (radio.codepenassets.com) as published in their RSS feed. Play Podcasts does not host this file. Rights-holders can request removal through the copyright & takedown page.

Show Notes

Chris and Stephen talk about how we use a Cloudflare Worker & HTMLRewriter to inject a very special <script> tag into the previews of the Pens you work on. This script has a lot of important jobs so it's presence is crucial, and getting it in there reliably can is a bit of a challenge.

Time Jumps