UNPKG

website-auditfy

Version:

> Tool for validate your project on SEO, HTML, CSS, JS, TS, Performance, Security and A11Y

20 lines 844 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TotalBlockingTimeRule = void 0; const lighthouse_helper_1 = require("../../../linters/lighthouse.helper"); class TotalBlockingTimeRule { constructor(dom, lightHouse) { this.id = 'total-blocking-time'; this.tags = ['performance']; this.description = 'Total blocking time'; this.ruleUrl = 'https://developer.chrome.com/docs/lighthouse/performance/lighthouse-total-blocking-time/'; this.dom = dom; this.lightHouse = lightHouse; } check() { const minScore = 0.7; return lighthouse_helper_1.LighthouseHelper.identifyRule(this.id, this.ruleFlow, this.lightHouse, minScore); } } exports.TotalBlockingTimeRule = TotalBlockingTimeRule; //# sourceMappingURL=total-blocking-time.rule.js.map