Cloudflare

Asynchronous HTMLRewriter for Cloudflare Workers

Aug 28, 2020Ashcon Partovi
Asynchronous HTMLRewriter for Cloudflare Workers
SummaryAI, from the source post

Introduced asynchronous handlers to HTMLRewriter, enabling developers to perform awaitable operations within element handlers. This allows for dynamic HTML modification based on fetched data, user context, or external API calls. Enhanced CSS selector support to include `nth-child` selectors. Provided examples for user customization and image restoration using external APIs.

More from the Edge Computing with Cloudflare Workers trail