DiscoverCodePen Radio409: Our Own Script Injection
409: Our Own Script Injection

409: Our Own Script Injection

Update: 2025-09-16
Share

Description

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

Comments 
00:00
00:00
x

0.5x

0.8x

1.0x

1.25x

1.5x

2.0x

3.0x

Sleep Timer

Off

End of Episode

5 Minutes

10 Minutes

15 Minutes

30 Minutes

45 Minutes

60 Minutes

120 Minutes

409: Our Own Script Injection

409: Our Own Script Injection

CodePen Blog