sitespeed.io/lib/aggregators/yslow/ruleScore.js

18 lines
493 B
JavaScript

/**
* Sitespeed.io - How speedy is your site? (https://www.sitespeed.io)
* Copyright (c) 2014, Peter Hedenskog, Tobias Lidskog
* and other contributors
* Released under the Apache 2.0 License
*/
'use strict';
var Aggregator = require('../aggregator');
module.exports = new Aggregator('ruleScore', 'Rule Score',
'The sitespeed.io total rule score for all the pages',
'rule', '', 0,
function(pageData) {
if (pageData.yslow) {
this.stats.push(pageData.yslow.o);
}
});