 shouldEarlyHintsPreloadResource() {
    return EARLY_HINTS_POLICY === "absent" || EARLY_HINTS_POLICY == "allowed";
}

promise_test(async (t) => {
    const resource_url = SEARCH_PARAMS.get("resource-url");
    if (isResourceAllowed()) {
        await fetchScript(resource_url);
        const early_hints_preloaded = isPreloadedByEarlyHints(resource_url);
        const should_early_hints_preload = shouldEarlyHintsPreloadResource();
        const description = "Early Hints " +
            (early_hints_preloade