{"id":394428,"date":"2026-12-02T15:42:18","date_gmt":"2026-12-02T15:42:18","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/intent-prefetch\/"},"modified":"2026-12-02T15:51:56","modified_gmt":"2026-12-02T15:51:56","slug":"projectstudios-intent-prefetch","status":"publish","type":"plugin","link":"https:\/\/lug.wordpress.org\/plugins\/projectstudios-intent-prefetch\/","author":11605254,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.1","stable_tag":"1.0.1","tested":"7.1.5","requires":"6.3","requires_php":"7.4","requires_plugins":null,"header_name":"Project Studios Intent Prefetch","header_author":"Shaun Palmer","header_description":"Warms internal links on hover or tap so the next page opens instantly. Never prerenders \u2014 so analytics never record a visit that did not happen. Vanilla JavaScript, no libraries, no tracking.","last_updated":"2026-12-02 15:51:56","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":0,"downloads":208,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq"],"tags":{"1.0.1":{"tag":"1.0.1","author":"shaunpalmer","date":"2026-12-02 15:51:56","revision":3840471}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3840395,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3840395,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3840395,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3840395,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3840395,"resolution":"1","location":"assets","locale":"","width":1280,"height":860},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3840395,"resolution":"2","location":"assets","locale":"","width":1280,"height":860}},"screenshots":{"1":"Settings \u2192 Project Studios Intent Prefetch: the switch, the hover delay, the concurrency cap, touch handling, and Save-Data \/ slow-network respect.","2":"URL and path exclusions \u2014 your own fragments, on top of the core exclusions that are always enforced (wp-admin, wp-login.php, wp-json, feeds, and state-changing query parameters).","3":"Security: never prefetch URLs carrying state-changing query parameters (action, add-to-cart, nonce, rest_route, etc.).","4":"Security: never follow redirects during prefetch; redirected destinations are never requested.","5":"Fix: exclusions can no longer be wiped by WordPress double-sanitisation on first save.","6":"Fix: defer now emitted via the WP 6.3+ <code>strategy<\/code> API; minimum WordPress raised to 6.3.","7":"Initial release: hover\/touch intent prefetch, dedupe, concurrency cap, exclusions, Save-Data and slow-network handling, Settings page."}},"plugin_section":[],"plugin_tags":[3733,1753,247,14329,794],"plugin_category":[43,52,54],"plugin_contributors":[297189],"plugin_business_model":[],"class_list":["post-394428","plugin","type-plugin","status-publish","hentry","plugin_tags-hover","plugin_tags-navigation","plugin_tags-performance","plugin_tags-prefetch","plugin_tags-speed","plugin_category-customization","plugin_category-performance","plugin_category-security-and-spam-protection","plugin_contributors-shaunpalmer","plugin_committers-shaunpalmer"],"banners":{"banner":"https:\/\/ps.w.org\/projectstudios-intent-prefetch\/assets\/banner-772x250.png?rev=3840395","banner_2x":"https:\/\/ps.w.org\/projectstudios-intent-prefetch\/assets\/banner-1544x500.png?rev=3840395","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/projectstudios-intent-prefetch\/assets\/icon-128x128.png?rev=3840395","icon_2x":"https:\/\/ps.w.org\/projectstudios-intent-prefetch\/assets\/icon-256x256.png?rev=3840395","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/projectstudios-intent-prefetch\/assets\/screenshot-1.png?rev=3840395","caption":"Settings \u2192 Project Studios Intent Prefetch: the switch, the hover delay, the concurrency cap, touch handling, and Save-Data \/ slow-network respect."},{"src":"https:\/\/ps.w.org\/projectstudios-intent-prefetch\/assets\/screenshot-2.png?rev=3840395","caption":"URL and path exclusions \u2014 your own fragments, on top of the core exclusions that are always enforced (wp-admin, wp-login.php, wp-json, feeds, and state-changing query parameters)."}],"raw_content":"<!--section=description-->\n<p>Project Studios Intent Prefetch improves perceived WordPress navigation speed by warming the browser cache for same-origin internal links when the visitor shows intent to click them \u2014 hovering over a link, or tapping one on touch devices \u2014 without fetching the entire site up front.<\/p>\n\n<h4>Why not prerender?<\/h4>\n\n<p>The two most-downloaded plugins in this space <strong>prerender<\/strong>: they load the next page in a hidden tab, which runs its scripts. That fires your analytics for a visit the visitor never made \u2014 inflated pageviews, phantom conversions, and a session that never happened.<\/p>\n\n<p>Project Studios Intent Prefetch only ever <strong>warms the browser cache<\/strong>. It never prerenders, never executes the fetched page's scripts, and never follows a redirect. The visit is counted when \u2014 and only if \u2014 the visitor actually arrives.<\/p>\n\n<p>That is a tested property, not a slogan: the plugin's own tests assert that no prerender hint and no speculation rule is ever emitted.<\/p>\n\n<h4>What it does not do<\/h4>\n\n<ul>\n<li>No prerendering, no hidden tabs, no speculation rules.<\/li>\n<li>No tracking, no telemetry, no external requests.<\/li>\n<li>No admin nags, no upsell, no \"powered by\" link on your site.<\/li>\n<li>No page-builder-specific code \u2014 it listens on the document and works with any theme.<\/li>\n<\/ul>\n\n<p>Why this plugin is different:<\/p>\n\n<ul>\n<li>Tiny vanilla JavaScript. No jQuery, no external prefetch libraries, no build tooling.<\/li>\n<li>Same-origin only by default. External domains are never touched.<\/li>\n<li>Never executes the prefetched page. The response is streamed into the browser cache only.<\/li>\n<li>No duplicate requests. Each URL is fetched at most once per page view.<\/li>\n<li>Bounded network use. Configurable hover delay, concurrency cap, exclusions, Save-Data and slow-network respect.<\/li>\n<li>WordPress-native. Uses the WordPress enqueue and Settings APIs, nonces and capability checks on the admin page.<\/li>\n<li>No tracking, no telemetry, no hidden calls.<\/li>\n<\/ul>\n\n<p>What is skipped automatically:<\/p>\n\n<ul>\n<li>External origins, mailto:, tel:, javascript:, data:, and pure #anchors<\/li>\n<li>Admin, login, logout, wp-json, cron, feed and trackback URLs<\/li>\n<li>Links with a download attribute and common binary file extensions<\/li>\n<li>Same-page links (nothing new to warm)<\/li>\n<li>Form submit-style links<\/li>\n<li>Any link (or ancestor) marked data-intent-prefetch=\"off\" or class .no-prefetch<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload the projectstudios-intent-prefetch folder to \/wp-content\/plugins\/, or install the zip via Plugins \u2192 Add New \u2192 Upload Plugin.<\/li>\n<li>Activate the plugin through the Plugins screen.<\/li>\n<li>Go to Settings \u2192 Project Studios Intent Prefetch and adjust behaviour (optional \u2014 sensible defaults are already active).<\/li>\n<li>Open a public page, hover an internal link, and watch the Network tab: one prefetch appears after the configured delay.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20it%20work%20with%20page%20builders%3F\"><h3>Does it work with page builders?<\/h3><\/dt>\n<dd><p>Yes. It listens for pointer events on the document, so any link rendered by a theme, block editor, or page builder is covered without modification.<\/p><\/dd>\n<dt id=\"will%20it%20break%20my%20site%20if%20it%20fails%3F\"><h3>Will it break my site if it fails?<\/h3><\/dt>\n<dd><p>No. Every network operation is silent and best-effort; navigation itself is never touched, cancelled, or redirected.<\/p><\/dd>\n<dt id=\"does%20it%20send%20data%20anywhere%3F\"><h3>Does it send data anywhere?<\/h3><\/dt>\n<dd><p>No. The only network activity is the visitor's own browser fetching same-origin URLs they chose to hover. There is no telemetry, no remote code execution, and no dynamic PHP.<\/p><\/dd>\n<dt id=\"how%20is%20this%20different%20from%20wordpress%27s%20built-in%20speculative%20loading%3F\"><h3>How is this different from WordPress's built-in speculative loading?<\/h3><\/dt>\n<dd><p>WordPress 6.8 added a speculative loading API that prerenders or prefetches links according to a conservative ruleset. Project Studios Intent Prefetch is a lighter, intent-driven alternative: it warms the cache only for a link the visitor actually hovers or touches, with a configurable delay, a concurrency cap, Save-Data and slow-network respect, and per-link opt-out via <code>data-intent-prefetch=\"off\"<\/code>. If you already run core speculative loading, both can coexist \u2014 this plugin never prerenders and never runs the fetched page's scripts.<\/p><\/dd>\n<dt id=\"how%20do%20i%20exclude%20a%20single%20link%3F\"><h3>How do I exclude a single link?<\/h3><\/dt>\n<dd><p>Add data-intent-prefetch=\"off\" to that link (or to a parent container) and it will never be prefetched.<\/p><\/dd>\n\n<\/dl>","raw_excerpt":"Instant navigation: warms internal links on hover or tap, and never prerenders \u2014 so analytics stay honest.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/lug.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/394428","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lug.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/lug.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/lug.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=394428"}],"author":[{"embeddable":true,"href":"https:\/\/lug.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/shaunpalmer"}],"wp:attachment":[{"href":"https:\/\/lug.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=394428"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/lug.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=394428"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/lug.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=394428"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/lug.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=394428"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/lug.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=394428"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/lug.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=394428"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}