Functions for Core Web Vitals Tactics with Cloudflare’s HTMLRewriter