website-auditfy
Version:
> Tool for validate your project on SEO, HTML, CSS, JS, TS, Performance, Security and A11Y
19 lines • 954 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DocumentLatencyInsightRule = void 0;
const lighthouse_helper_1 = require("../../../linters/lighthouse.helper");
class DocumentLatencyInsightRule {
constructor(dom, lightHouse) {
this.id = 'document-latency-insight';
this.tags = ['performance'];
this.description = 'Your first network request is the most important. Reduce its latency by avoiding redirects, ensuring a fast server response, and enabling text compression.';
this.ruleUrl = 'https://developer.chrome.com/docs/performance/insights/document-latency';
this.dom = dom;
this.lightHouse = lightHouse;
}
check() {
return lighthouse_helper_1.LighthouseHelper.identifyRule(this.id, this.ruleFlow, this.lightHouse);
}
}
exports.DocumentLatencyInsightRule = DocumentLatencyInsightRule;
//# sourceMappingURL=document-latency-insight.rule.js.map