website-auditfy
Version:
> Tool for validate your project on SEO, HTML, CSS, JS, TS, Performance, Security and A11Y
19 lines • 849 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ClsCulpritsInsightRule = void 0;
const lighthouse_helper_1 = require("../../../linters/lighthouse.helper");
class ClsCulpritsInsightRule {
constructor(dom, lightHouse) {
this.id = 'cls-culprits-insight';
this.tags = ['performance'];
this.description = 'Layout shifts occur when elements move absent any user interaction. [Investigate the causes of layout shifts]';
this.ruleUrl = 'https://web.dev/articles/optimize-cls';
this.dom = dom;
this.lightHouse = lightHouse;
}
check() {
return lighthouse_helper_1.LighthouseHelper.identifyRule(this.id, this.ruleFlow, this.lightHouse);
}
}
exports.ClsCulpritsInsightRule = ClsCulpritsInsightRule;
//# sourceMappingURL=cls-culprits-insight.rule.js.map