Search


Search something to see results

DelayRule

A delay rule selects a subset of resources and applies some DelayOptions to it. See SpeedKitConfig.delayed | the delayed option for more information.

1.17.0

interface DelayRule {
    options?: DelayOptions;
    rules: SpeedKitRule[];
}

Index

Properties

Properties

options?: DelayOptions

The options to apply to the selected resources.

{ event: 'load', timeout: 1000 }

Delays all resources affected by this rule until the load event has been completed plus a one second timeout.

1.17.0

rules: SpeedKitRule[]

The rules to match only some resources.

[{ url: 'www.googletagmanager.com/gtm.js' }]

Speed Kit will delay the Google Tag Manager request to speed up all render-critical requests.

1.17.0