Cotton Coder

The curated bookmark blog of web dev curiosities

Portable Server Rendered Web Components with Enhance SSR

Ryan Bethel shares a PHP and WordPress plugin for custom components using Enhance. Until now SSR frameworks have always been JavaScript on the server (those I’ve seen). Using PHP opens up a whole new world of opportunities.

Can I email…

Support tables for HTML and CSS in emails — this looks useful! Personally I absolutely refuse to build or send HTML emails. They’re a blight on the internet. But alas, they’re here to stay. The MJML framework for building email templates also looks like a life saver.

Detect JavaScript Support in CSS

I’ve been so focused on Container Queries I missed the latest addition to Media Queries. Ryan Mulligan provides a nice usage demo for the scripting query. Say goodbye to toggling CSS classes.

Layoffs.fyi

A tech layoff tracker created by Roger Lee with data from thousands of companies since 2022.