Search


Search something to see results

ResourceRule

A resource rule selects a subset of SpeedKitConfig.criticalResources | critical resources.

1.11.0

interface ResourceRule {
    enabledOn?: SpeedKitRule[];
    resources: string[];
}

Index

Properties

Properties

enabledOn?: SpeedKitRule[]

The pages from which the critical resources should be fetched.

[{ host: "www.baqend.com" }]

In this example, Speed Kit will fetch the critical resources given by the resources property for the given page.

1.11.0

resources: string[]

The critical resources to fetch before any other resources.

["https://www.baqend.com/style.css"]

In this example, Speed Kit will fetch the "style.css" file with high priority.

1.11.0