Browser and CDN Caching Headers for Visitors
Sends Cache-Control headers on public pages for logged-out visitors, so a CDN or proxy can cache them for a few minutes.
Snippet Library
Snippets that make WordPress lighter and faster: remove emoji scripts and embeds, control the Heartbeat API, limit revisions and load scripts only where they are needed. For developers and site owners chasing better Core Web Vitals.
Sends Cache-Control headers on public pages for logged-out visitors, so a CDN or proxy can cache them for a few minutes.
Caches the per-role user counts shown on the Users screen and dashboard for 12 hours, avoiding a heavy query on sites with many users.
Keeps embedded content like videos and social posts cached for 30 days instead of re-fetching it from the provider every day.
Stops browsers on large screens from downloading huge image versions by leaving very wide sizes out of the responsive srcset list.
Autosaves drafts every two minutes instead of every minute, in both the block editor and the classic editor.
Removes rarely used tags from the page head: RSD, Windows Live Writer manifest, shortlink, adjacent post links and the REST API discovery link.
Replaces embedded Google Maps in your content with a placeholder that loads the map only when clicked, for faster pages and fewer third-party cookies.
Shows a lightweight thumbnail instead of the full YouTube player until the visitor clicks play, saving around a megabyte of scripts per video.
Adds the defer attribute to the front-end scripts you list by handle, so they no longer block page rendering.
Turns off WooCommerce Analytics, the React-based admin home, onboarding and marketing screens, which noticeably speeds up the admin on smaller stores.
Stops the cart fragments script, which fires an extra uncached AJAX request on every page, everywhere except the shop, product, cart and checkout pages.
Stops your site from acting as an oEmbed provider: removes the discovery links, the embed REST route and the wp-embed script. Embedding YouTube and similar services keeps working.
Removes the emoji detection script, inline styles and DNS prefetch that WordPress adds to every page. Browsers still display emoji natively.
Keeps the Heartbeat API (autosave and post locking) in the editor but turns it off on every other admin and front-end page to save server requests.
Tells WordPress to skip lazy loading for the first three images on a page, which usually improves Largest Contentful Paint.
Permanently removes trashed posts, pages and comments after 7 days instead of 30, keeping the database lean.
Answers requests for missing images, CSS, JavaScript and font files with a tiny 404 instead of loading a full theme page, saving server time.
Keeps only the five most recent revisions of each post, which stops the database from growing with old copies.
Replaces the single large block stylesheet with small per-block styles that load only when a block is actually used, which helps classic themes most.
Keeps Contact Form 7 scripts and styles off every page except those that contain a form, removing two requests from most pages.
Loads the stylesheets you choose in the background so they no longer delay the first paint, ideal for CSS of things below the fold like sliders or forms.
Stops the threaded comments script from loading on pages that have no open comments or where threading is turned off.
Moves the scripts you list from the page head to the footer, so they stop blocking the page from rendering.
Adds preconnect hints so the browser opens connections to external hosts (Google Fonts by default) earlier.