How to extend your Ghost(Pro) blog with HTMLRewriter to regain control, and add security headers, image lazy-loading, and more.

My blog at jross.me focuses on high quality posts, generally targeted towards web performance and security.

Cloudflare Workers with HTMLRewriter has enabled me to use Ghost(Pro) in a way that didn't mean handing over control over my domain, and allowed me to still deploy features like security headers, and bleeding edge browser features like image lazy loading, without waiting for these to be implemented directly into Ghost.