Creative Studio
Web Design

What is Speculation Rules API? The New Standard That Opens Your Site in 0 Milliseconds

Wordpress Haber Botu
What is Speculation Rules API? The New Standard That Opens Your Site in 0 Milliseconds

To increase the opening speed of your website, you have WebP your images, installed a cache plug-in, connected a CDN, but have you still not been able to completely eliminate that 0.5-1 second white screen wait when the visitor clicks on a menu link? Because in classical web architecture, the browser does not start requesting the new page until the visitor clicks on the link! Here is the brand new Speculation Rules API standard inverts this rule: In the millisecond that a visitor's mouse hovers over a blog post or product link, the browser secretly renders that page completely in the background and as soon as the user clicks the page 0 milliseconds delay opens like a mobile app! The installation of this Core Web Vitals accelerator, which very few webmasters in Türkiye know about, is right below!

Brief Summary: Speculation Rules API 0 milliseconds.

What is Speculation Rules API and How Does It Work?

Speculation Rules API is a small <script type="speculationrules"> is a modern web API that tells

The rest of the article is below

Leave a Comment to Read the Rest of the Article

Did you find our content useful? We are curious about your thoughts on the subject.

the browser which internal pages should be preloaded via a JSON block.

Wordpress Haber Botu

When the user's cursor hovers over a link (moderate setting), the browser prepares the target page in the background. Because the page is already ready in memory as soon as the user completes the left click LCP (Largest Content Dye) and page switching time is reduced to almost zero.

Prerender and Eagerness Levels with Prefetch

The technical differences of the modes you can choose to get the highest speed without tiring the server resources are listed in the table below.

Mode / Setting When Is It Triggered? Server Load Recommended Use
conservative When the mouse button is pressed (mousedown) Lowest High traffic e-commerce and news sites
moderate When the mouse rests on the link for 200 ms Balanced (Ideal) Blogs, corporate sites, SaaS pages
eager As soon as the link appears on the screen High Critical individual target pages only

How to Add Speculation Rules API to Your Website?

Follow these steps to add this new speed standard to your Custom HTML, Next.js, Laravel or WordPress site in 2 minutes:

  1. First of all cart, checkout, checkout (/logout, /cart, /wp-admin), should be strictly excluded.
  2. Your site <head> or <body> (in WordPress 6.8 and above, this feature is included by default in core; for custom rules, use the official Speculative Loading plugin).
  3. After publishing the code F12 (Developer Tools) → Application → Speculative loads tab.
  4. Hover your mouse over a blog link on the page for 1 second and Speculative loads screen, the status "Ready / Preloaded".
  5. When you click on the link, see with your own eyes that the page opens in a split second without a white screen!

Secure Startup Speculation Rules Code

<script type="speculationrules">
{
  "prerender": [
    {
      "where": {
        "and":[
          { "href_matches": "/*" },
          { "note": { "href_matches": "/wp-admin/*" } },
          { "note": { "href_matches": "/basket/*" } },
          { "note": { "href_matches": "/exit*" } }
        ]
      },
      "eagerness": "moderate"
    }
  ]
}
</script>

Zertucha Performance Engineering Note and Limits

On high traffic news and corporate websites that we optimize as Zertucha moderate or conservative setting dramatically improves real user LCP (Core Web Vitals) scores. To take your site's speed and technical SEO architecture to the next level Zertucha technical optimization proposal. Browser support is currently full in Chromium-based browsers (Chrome, Edge, Brave, Opera, Android Chrome); Older browsers that do not support it will silently ignore this block without giving any errors.

Frequently Asked Questions

Do background preloaded pages inflate Google Analytics page views?

No. Current Google Analytics 4 (GA4) and modern analytics tools detect prerender status; It does not count as a page view unless the user actually clicks on the page and activates it.

Will this feature put too much traffic on my server?

eagerness to moderate or conservative, only unique links that the user is actually inclined to click will be preloaded; therefore the server load is negligible.

Will the site break for Safari or Firefox users?

Absolutely indestructible. Browsers that do not support type="speculationrules" tag, it ignores it and the site continues to run smoothly at standard speed.

Wordpress Haber Botu

Comments (0)

No comments yet. Be the first to comment!

Leave a Comment

Instant Access: The second you submit your comment (without waiting for admin approval), the entire article will be opened automatically and you can continue reading where you left off.

You May Be Interested In

How can we help you?
ZerX
ZerX AI Online
Hello! I ZerX ⚡
I come from the Zertucha lab. How can I help you?

Clear Chat

Your entire conversation history will be permanently deleted. Are you sure?

AI
ZerX