[ Web Proxy ]
URL:
Viewing: https://fa.wordpress.org/plugins/speculation-rules/ [Back]  [Original]

(Speculative Loading) – | WordPress.org
WordPress.org

:
[]
[]

(Speculative Loading)

API (Speculation Rules API) URL . . (conservative eagerness) . (moderate) ( ) > .

/ . – – . ( ) . .

URL ( ). CSS no-prerender ( <a>) . .

API API . . .

Speculation Rules .

  1. > .
  2. Speculative Loading .
  3. .

  1. speculation-rules /wp-content/plugins/ .
  2. .
  3. .

  1. > .
  2. .

URL

URL . URL . URL /wp-login.php /wp-admin/* . URL wp_nonce_url() ( _wpnonce ) nofollow . URL plsr_speculation_rules_href_exclude_paths .

URL https://example.com/cart/ https://example.com/cart/foo :

<?php
add_filter(
    'plsr_speculation_rules_href_exclude_paths',
    function ( array $exclude_paths ): array {
        $exclude_paths[] = '/cart/*';
        return $exclude_paths;
    }
);

URL . .

plsr_speculation_rules_href_exclude_paths ( “prefetch” “prerender”) .

URL https://example.com/products/... :

<?php
add_filter(
    'plsr_speculation_rules_href_exclude_paths',
    function ( array $exclude_paths, string $mode ): array {
        if ( 'prerender' === $mode ) {
            $exclude_paths[] = '/products/*';
        }
        return $exclude_paths;
    },
    10,
    2
);

CSS no-prerender ( ). rel=nofollow idempotent ( ) POST wp_nonce_url() .

. URL URL . .

(pretty permalinks) plsr_enabled_without_pretty_permalinks :

<?php
add_filter( 'plsr_enabled_without_pretty_permalinks', '__return_true' );

(analytics) .

( ) . ( Google Analytics) . (cross-origin) .

moderate () . eager () . / () .

( /) . ! <script> API JavaScript DOM .

. issue . .

. .

WordPress HackerOne .

! .

Terry J 16 2025
Although I have not tried the plugin on live sites, my testing on 3-4 dev boxes leaves me impressed. I can see and feel the speed increase I have a couple of heavy sites and can see this plugin fitting right into the flow. Will get on it soon
OllieJones 1 2025
This works. That's good.
mrimpact 9 2024
We have done a lot of testing on WordPress sites and WooCommerce stores. Everything works beautifully and fast. Thank you very much for this amazing plugin.
groggy72 19 2024 1
I was using another plugin which does a similar job but Speculative Loading appears to be substantially quicker. Using on about 10 sites and no issues. Thank you
Hudson Atwell 4 2024
Amazing results on install. Will continue to check this one out.
lacoste89 27 2024
Es verkrzt die Ladzeit fr einen Benutzer sichtbar, auch wenn im Hintergrund die Seite gleichschnell geladen wird, so fhlt es sich fr einen Benutzer extrem schnell an.
18

1.7.0

  • Add declare( strict_types = 1 ) to all PHP files. (2424)
  • Bump minimum required WordPress version to 6.9. (2517)
  • Bump minimum required PHP version from 7.2 to 7.4. (2469)
  • Improve code quality with native property types and stricter static analysis. (1729)
  • Harden the JSON encoding of the inline speculation rules script and add a sourceURL to the authentication admin notice script. (2169)

1.6.0

1.5.0

1.4.0

1.3.1

  • rel nofollow nofollow . (1232)

1.3.0

1.2.2

  • href JSON URL /. (1164)

1.2.1

  • URL _wpnonce . (1143)
  • rel=nofollow /. (1142)

1.2.0

  • uninstall.php . (1128)

1.1.0

1.0.1

  • Escape pathname . (951)
  • HTML5 JSON. (952)
  • . (987)

1.0.0

.

:

1 1

The WordPress® trademark is the intellectual property of the WordPress Foundation.

Web Proxy Viewer  |  New URL  |  Original Page