Skip to content

Commit

Permalink
Change waste threshold to 10kb
Browse files Browse the repository at this point in the history
  • Loading branch information
wardpeet committed Mar 4, 2017
1 parent a07180e commit 866b635
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const URL = require('../../lib/url-shim');

const IGNORE_THRESHOLD_IN_BYTES = 1400;
const IGNORE_THRESHOLD_IN_PERCENT = 0.9;
const TOTAL_WASTED_BYTES_THRESHOLD = 100 * 1024; // 100KB
const TOTAL_WASTED_BYTES_THRESHOLD = 10 * 1024; // 5KB

class ResponsesAreCompressed extends Audit {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ describe('Page uses optimized responses', () => {
const auditResult = ResponsesAreCompressedAudit.audit_({
ResponseCompression: [
generateResponse('index.js', 'text/javascript', 1000 * KB_BYTES, 910 * KB_BYTES),
generateResponse('index.css', 'text/css', 50 * KB_BYTES, 40 * KB_BYTES),
generateResponse('index.json', 'application/json', 10 * KB_BYTES, 5 * KB_BYTES),
generateResponse('index.css', 'text/css', 6 * KB_BYTES, 4.5 * KB_BYTES),
generateResponse('index.json', 'application/json', 10 * KB_BYTES, 10 * KB_BYTES),
],
});

Expand Down

0 comments on commit 866b635

Please sign in to comment.