website-auditfy
Version:
> Tool for validate your project on SEO, HTML, CSS, JS, TS, Performance, Security and A11Y
19 lines • 719 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.LongTasksRule = void 0;
const lighthouse_helper_1 = require("../../../linters/lighthouse.helper");
class LongTasksRule {
constructor(dom, lightHouse) {
this.id = 'long-tasks';
this.tags = ['performance'];
this.description = 'Avoid long main-thread tasks';
this.ruleUrl = 'https://web.dev/articles/optimize-long-tasks';
this.dom = dom;
this.lightHouse = lightHouse;
}
check() {
return lighthouse_helper_1.LighthouseHelper.identifyRule(this.id, this.ruleFlow, this.lightHouse);
}
}
exports.LongTasksRule = LongTasksRule;
//# sourceMappingURL=long-tasks.rule.js.map