Skip to content

Commit

Permalink
Review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
wardpeet committed Mar 29, 2018
1 parent 5725bc9 commit 4893f20
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ module.exports = [
extendedInfo: {
value: {
results: {
length: 19,
length: '>15',
},
},
},
details: {
items: {
length: 19,
length: '>15',
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const Audit = require('../audit');
const WebInspector = require('../../lib/web-inspector');

// the threshold for the size of GIFs wich we flag as unoptimized
const GIF_BYTE_THRESHOLD = 10 * 1000;
const GIF_BYTE_THRESHOLD = 10 * 1024;

class UsesOptimizedAnimatedImages extends Audit {
/**
Expand All @@ -22,8 +22,10 @@ class UsesOptimizedAnimatedImages extends Audit {
return {
name: 'uses-optimized-animated-images',
informative: true,
description: 'Use a video format for animated content',
helpText: 'no help here, your on your own!',
description: 'Use a video formats for animated content',
helpText: 'Large GIFs are inefficient for delivering animated content. Consider using ' +
'MPEG4/WebM videos for animations and PNG/WebP for static images instead of GIF to save ' +
'network bytes. [Learn more](https://en.wikipedia.org/wiki/Video_alternative_to_GIF)',
requiredArtifacts: ['devtoolsLogs'],
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('Page uses videos for animated GIFs', () => {
{
_resourceType: WebInspector.resourceTypes.Image,
mimeType: 'image/gif',
transferSize: 10000,
transferSize: 10240,
},
{
_resourceType: WebInspector.resourceTypes.Image,
Expand Down

0 comments on commit 4893f20

Please sign in to comment.