{"id":3255,"date":"2025-01-10T16:10:34","date_gmt":"2025-01-10T14:10:34","guid":{"rendered":"https:\/\/fastpixel.io\/?post_type=docs&#038;p=3255"},"modified":"2025-01-10T18:47:12","modified_gmt":"2025-01-10T16:47:12","password":"","slug":"what-are-the-speculation-rules","status":"publish","type":"docs","link":"https:\/\/fastpixel.io\/fr\/docs\/what-are-the-speculation-rules\/","title":{"rendered":"What are the Speculation Rules?"},"content":{"rendered":"<p>Speculation Rules are useful for improving page speed and user experience by reducing the time to interact with subsequent pages.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<div class=\"wp-block-uagb-advanced-heading uagb-block-570097d3\"><h2 class=\"uagb-heading-text\">Speculation Modes:<br><\/h2><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">1.Prefetch:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Preloads resources (e.g., scripts, styles, or pages) that might be needed in the near future.<\/li>\n\n\n\n<li>These resources are downloaded and stored but not executed until explicitly required.<\/li>\n\n\n\n<li>Ideal for preparing for user navigation without incurring high resource usage.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">2. Prerender:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Fully renders the target page in the background.<\/li>\n\n\n\n<li>When the user navigates to the pre-rendered page, it loads instantly because it\u2019s already prepared.<\/li>\n\n\n\n<li>More resource-intensive than prefetching but offers a faster user experience for anticipated navigation paths.<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-uagb-advanced-heading uagb-block-a0fab97f\"><h2 class=\"uagb-heading-text\">Speculation Eagerness:<br><\/h2><\/div>\n\n\n\n<p><br>This determines how aggressively the system speculates and prepares resources.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. Conservative:<\/h3>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Prepares resources only for high-confidence predictions.<\/li>\n\n\n\n<li>Minimizes resource usage and potential performance hits but sacrifices some speed for unpredicted user paths.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">2. Moderate:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Balances between cautious and aggressive speculation.<\/li>\n\n\n\n<li>Prepares a broader set of resources without being overly resource-intensive.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">3. Eager:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Speculates aggressively by preloading or prerendering many potential resources or pages.<\/li>\n\n\n\n<li>Provides the fastest experience for predicted user paths but can lead to wasted resources and higher load on servers or client devices.<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Prefetch with Conservative or Moderate Speculation<\/strong> is great for general usage with minimal risk of overloading resources.<br><strong>Prerender with Eager Speculation <\/strong>is ideal for critical pages where speed is paramount and resource overhead is acceptable.<\/p>","protected":false},"excerpt":{"rendered":"<p>Speculation Rules are useful for improving page speed and user experience by reducing the time to interact with subsequent pages. Speculation Modes: 1.Prefetch: 2. Prerender: Speculation Eagerness: This determines how aggressively the system speculates and prepares resources. 1. Conservative: 2. Moderate: 3. Eager: Prefetch with Conservative or Moderate Speculation is great for general usage with [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","footnotes":""},"doc_category":[13],"doc_tag":[],"class_list":["post-3255","docs","type-docs","status-publish","hentry","doc_category-fastpixel-website-accelerator"],"blocksy_meta":[],"year_month":"2026-04","word_count":221,"total_views":"384","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"Adrian","author_nicename":"adrian","author_url":"https:\/\/fastpixel.io\/fr\/blog\/author\/adrian\/"},"doc_category_info":[{"term_name":"FastPixel Website Accelerator","term_url":"https:\/\/fastpixel.io\/fr\/docs-category\/fastpixel-website-accelerator\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"trp-custom-language-flag":false,"betterdocs-category-thumb":false},"uagb_author_info":{"display_name":"Adrian","author_link":"https:\/\/fastpixel.io\/fr\/blog\/author\/adrian\/"},"uagb_comment_info":0,"uagb_excerpt":"Speculation Rules are useful for improving page speed and user experience by reducing the time to interact with subsequent pages. Speculation Modes: 1.Prefetch: 2. Prerender: Speculation Eagerness: This determines how aggressively the system speculates and prepares resources. 1. Conservative: 2. Moderate: 3. Eager: Prefetch with Conservative or Moderate Speculation is great for general usage with\u2026","_links":{"self":[{"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/docs\/3255","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/comments?post=3255"}],"version-history":[{"count":7,"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/docs\/3255\/revisions"}],"predecessor-version":[{"id":3265,"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/docs\/3255\/revisions\/3265"}],"wp:attachment":[{"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/media?parent=3255"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/doc_category?post=3255"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/fastpixel.io\/fr\/wp-json\/wp\/v2\/doc_tag?post=3255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}