| 开发者 |
fepo
michaelpehl |
|---|---|
| 更新时间 | 2026年10月29日 20:36 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
fetchpriority="high" — usually the LCP element, the one Core Web Vitals
measures. Everything below it is deferred with loading="lazy". Your theme's
own loading attribute is always respected, and an image already marked as
high priority is never lazy-loaded.
Originals are always kept as a fallback, so a page can never break.
Coming soon: automatic conversion to WebP/AVIF on upload.
How it works: <img> tags are wrapped in <picture> with AVIF/WebP sources (original kept as
fallback), CSS background-images are served as AVIF via an injected style block, and web fonts
are subsetted and served locally — with the theme's Google Fonts request removed, so no visitor
IP is sent to Google for fonts.
What gets optimised — and what doesn't
So you know exactly what to expect — we'd rather under-promise:
background-images (raster jpg/png) are served as AVIF via an injected style block
(no edits to your CSS).<link> is removed (closing the GDPR concern of
visitor IPs going to fonts.googleapis.com). All weights of a family come in one file.<video> are not covered. A font is only replaced when a matching source is
found. Deleting the plugin removes the on-the-fly rewrites (page returns to original) but
leaves the optimised files in wp-content/uploads/fepo/ (they belong to you).family=Roboto:400|Open+Sans:300) were only half recognized.family=Playfair+Display…&family=Montserrat…), the plugin recognized only the last one. If only that one was local, the whole link was removed — and the other fonts no longer loaded at all. Now all of them are recognized.@font-face rules live in a separate, cached file instead of in every page.preload) the optimized fonts had stopped working in 1.1.0. The browser loads them early again.[fepo-io] for this.