monitor-api - v1.8.0
    Preparing search index...

    Interface ResourceEntry

    Timing and size of one asset loaded by the page, from the Resource Timing API.

    interface ResourceEntry {
        cache: "hit" | "miss" | "unknown";
        decodedBodySize: number;
        duration: number;
        encodedBodySize: number;
        initiatorType: string;
        renderBlocking: boolean | null;
        status: number | null;
        thirdParty: boolean;
        timestamp: number;
        transferSize: number;
        type: ResourceType;
        url: string;
    }
    Index

    Properties

    cache: "hit" | "miss" | "unknown"

    hit when served from the HTTP cache, miss when downloaded, and unknown when a cross-origin server hides sizes by not sending Timing-Allow-Origin.

    decodedBodySize: number

    Decompressed body size in bytes. 0 for cross-origin resources without Timing-Allow-Origin.

    duration: number

    Milliseconds from the start of the fetch to the last byte.

    encodedBodySize: number

    Compressed body size in bytes. 0 for cross-origin resources without Timing-Allow-Origin.

    initiatorType: string

    Raw initiatorType reported by the browser, such as link, img, or css.

    renderBlocking: boolean | null

    Whether the resource blocked the first render, or null where the browser does not say.

    status: number | null

    HTTP status, or null where unsupported or hidden for cross-origin resources.

    thirdParty: boolean

    Whether the resource came from an origin other than the page's.

    timestamp: number

    Unix timestamp in milliseconds for when the resource finished loading.

    transferSize: number

    Bytes transferred over the network, including headers. 0 when cached or cross-origin.

    url: string

    Resource URL, capped at 2,048 characters.