开发者 | sanspf |
---|---|
更新时间 | 2025年8月15日 13:46 |
PHP版本: | 7.2 及以上 |
WordPress版本: | 6.8 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
Website prefetching is the act of preloading resources (like another page) before a user actually clicks a link, making the experience feel faster.
Smart Prefetch uses lightweight client-side logic and contextual data (like device, country, and referrer) to predict which link a user is likely to click next. It then injects a <link rel="prefetch">
tag for that URL in the background.
The Speculation Rules API is a modern browser capability that allows websites to define which pages should be prefetched or prerendered based on rules. Smart Prefetch uses this API to dynamically inject rules predicting a user’s next navigation, enabling efficient and standards-based performance optimization. It ensures your site stays compatible with the latest web technologies.
Basic plugins prefetch all visible links, wasting bandwidth and possibly slowing down the page. Smart Prefetch only targets the most probable links, improving efficiency and performance.
No. Prefetch requests are intelligently delayed until the main content of the page has loaded, so current-page performance is not affected.
Yes, it's compatible with most popular caching and performance tools. For best results, avoid using multiple plugins that modify prefetching simultaneously. If conflicts arise, disable prefetch features in other plugins and test.
Core Web Vitals are a set of performance metrics Google uses for ranking. Smart Prefetch helps improve responsiveness (INP) and perceived load speed (LCP) by making page transitions feel much faster — a key factor in UX and SEO.
WordPress 5.6 or higher and PHP 7.2 or higher are recommended.