From a20c5677b4eab102a29876fea5f4d429d37b812e Mon Sep 17 00:00:00 2001 From: Catherine Snow Date: Thu, 16 Nov 2017 11:48:49 -0500 Subject: [PATCH] Fix typos --- front/src/js/directives/offendersDirectives.js | 4 ++-- lib/metadata/policies.js | 2 +- lib/tools/redownload/fileMinifier.js | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/front/src/js/directives/offendersDirectives.js b/front/src/js/directives/offendersDirectives.js index 609871b..f9d747e 100644 --- a/front/src/js/directives/offendersDirectives.js +++ b/front/src/js/directives/offendersDirectives.js @@ -751,7 +751,7 @@ } function onDetailsClick(row) { - // Close if it's alreay open + // Close if it's already open if (row.classList.contains('showDetails')) { closeDetails(row); return; @@ -924,4 +924,4 @@ }; }); -})(); \ No newline at end of file +})(); diff --git a/lib/metadata/policies.js b/lib/metadata/policies.js index 0a1df51..3a20d32 100644 --- a/lib/metadata/policies.js +++ b/lib/metadata/policies.js @@ -893,7 +893,7 @@ var policies = { "totalWeight": { "tool": "redownload", "label": "Total weight", - "message": "

The weight is of course very important if you want the page to load fast. Try to stay under 1MB, which is alreay very long to download over a slow connection.

Please note that Yellow Lab Tools' engine (PhantomJS) is not compatible with image srcset (unless you use a polyfill). This can lead to incorrect page weight.

", + "message": "

The weight is of course very important if you want the page to load fast. Try to stay under 1MB, which is already very long to download over a slow connection.

Please note that Yellow Lab Tools' engine (PhantomJS) is not compatible with image srcset (unless you use a polyfill). This can lead to incorrect page weight.

", "isOkThreshold": 716800, "isBadThreshold": 2097152, "isAbnormalThreshold": 3145728, diff --git a/lib/tools/redownload/fileMinifier.js b/lib/tools/redownload/fileMinifier.js index fc9ea1a..4f9371a 100644 --- a/lib/tools/redownload/fileMinifier.js +++ b/lib/tools/redownload/fileMinifier.js @@ -296,7 +296,7 @@ var FileMinifier = function() { return deferred.promise; } - // Avoid loosing time trying to compress some JS libraries known as already compressed + // Avoid losing time trying to compress some JS libraries known as already compressed function isKnownAsMinified(url) { var result = false; @@ -322,7 +322,7 @@ var FileMinifier = function() { return result; } - // Avoid loosing some trying to compress JS files if they alreay look minified + // Avoid losing some trying to compress JS files if they already look minified // by counting the number of lines compared to the total size. // Less than 2KB per line is suspicious function looksAlreadyMinified(code) { @@ -351,4 +351,4 @@ var FileMinifier = function() { }; }; -module.exports = new FileMinifier(); \ No newline at end of file +module.exports = new FileMinifier();