Speeding up your (WordPress) website is a few clicks away
Jun 22, 2023Alex Krivit, Patrick Meenan

Summary
This post introduces a method to improve website performance by identifying and prioritizing critical images (like LCP images) before they are fully parsed by the browser. It leverages Cloudflare Workers and provides a JavaScript snippet to implement this optimization. The post analyzes HTTP Archive data to quantify the opportunity for performance improvement and discusses heuristics for identifying likely LCP images, such as their position in the HTML and their size. It also references Chrome 114's image prioritization experiment.