You Might As Well Use a Content Security Policy
Content Security Policies, even for simple, content-focused sites, offer good protection against rare but real vulnerabilities out there. You might as well just get one.
Read ItContent Security Policies, even for simple, content-focused sites, offer good protection against rare but real vulnerabilities out there. You might as well just get one.
Read ItGet a Chrome extension reviewed a smidge more quickly by more carefully executing its client-side scripts only when they're needed.
Read ItWalking through how I used Puppeteer to programmatically collect every image loaded when a page is viewed in the browser.
Read ItEven though it won't run <script> tags, React's dangerouslySetInnerHTML still allows inline event handlers to execute. Here's how you might neutralize that threat.
Read ItWe're getting real familiar with seeing LLMs stream chunks of text to a page. Here's a simple demonstration of how you'd mimic the effect with TypeIt.
Read ItDefault parameter values have been in JavaScript for a while. But I just found out you can use sibling parameters as the default values themselves.
Read ItI’ve started to notice my stomach bunch up when I come across #BuildInPublic hashtags, or see people throw around phrases like: “Forget everything else. Just get out there and build.”“It’s all about building cool stuff together.”“The future belongs to the builders.”“Stop talking. Start building.”“So much to build, so little time.”At first,
Read ItYou can now use an LLM to moderate new comments submitted through JamComments. Here's the why and how.
Read ItThe animated GIF has become a key piece of today’s meme culture, despite being around decades prior. But there are serious technical advantages to
Read ItNative support for decorators is inevitable! It simplifies augmenting class methods, which can help with things like logging, memoization, debouncing, and dependency injection.
Read ItServices like S3 and R2 can be invaluable when self-hosting Plausible Analytics. Let's walk through what it looks like to use them for automated backups a simple cron job.
Read ItThinking through some of the trade-offs and benefits in using client-side JavaScript to generate structured data.
Read ItA guest post I had the privilege of writing for the Frontend Masters blog.
Read ItAfter upgrading my self-hosted instance of Ghost CMS, a significant number of my members' emails were inappropriately disabled. Here's how I went about fixing it (for now).
Read ItAstro's Starlight documentation theme is great, but currently lacks support for building structured data (JSON-LD). Fortunately, it's easy enough to roll yourself by overriding a component.
Read It