Kontrollerar ifall Javascript-koden är korrekt enligt Webperf-communityts egna Javascript-test. Testet är ett "lint"-test för att avgöra om det är korrekt Javascript och följer webbstandard.
Betyg: 2.95 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #12: , antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #12: , antal fel: 10 ( 3.00 betyg )
- X is not defined. (totalt 9 st)
- X is defined but never used. (totalt 1 st)
- `< script src="...">` in: #12: , antal grupperade fel: 2 ( 4.60 betyg )
- `< script src="...">` in: #12: , antal fel: 3 ( 4.40 betyg )
- Unexpected console statement. (totalt 2 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #13: scripts.min.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #13: scripts.min.js, antal fel: 1 ( 4.80 betyg )
- Parsing error: Identifier X has already been declared (totalt 1 st)
- `content-type=".*javascript.*"` in: #14: i18n.ashx, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #14: i18n.ashx, antal fel: 2 ( 4.60 betyg )
- Parsing error: Identifier X has already been declared (totalt 1 st)
- X is not defined. (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: richtext-tracki, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #27: richtext-tracki, antal fel: 12 ( 2.60 betyg )
- X is not defined. (totalt 11 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: CarouselSlider., antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #28: CarouselSlider., antal fel: 30 ( 1.00 betyg )
- X is not defined. (totalt 29 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: slick.min.js, antal grupperade fel: 3 ( 4.40 betyg )
- `content-type=".*javascript.*"` in: #29: slick.min.js, antal fel: 34 ( 1.00 betyg )
- X is not defined. (totalt 32 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: picturefill.min, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #30: picturefill.min, antal fel: 38 ( 1.00 betyg )
- X is not defined. (totalt 34 st)
- X is defined but never used. (totalt 2 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: footer.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #31: footer.js, antal fel: 41 ( 1.00 betyg )
- X is not defined. (totalt 37 st)
- X is defined but never used. (totalt 2 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: tether.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #32: tether.min.js, antal fel: 47 ( 1.00 betyg )
- X is not defined. (totalt 39 st)
- X is defined but never used. (totalt 6 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #33: Navigation.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #33: Navigation.js, antal fel: 313 ( 1.00 betyg )
- X is not defined. (totalt 304 st)
- X is defined but never used. (totalt 7 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: gtm.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #35: gtm.js, antal fel: 794 ( 1.00 betyg )
- X is defined but never used. (totalt 380 st)
- X is not defined. (totalt 319 st)
- X is assigned a value but never used. (totalt 92 st)
- Unexpected console statement. (totalt 2 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- `content-type=".*javascript.*"` in: #39: otSDKStub.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #39: otSDKStub.js, antal fel: 800 ( 1.00 betyg )
- X is defined but never used. (totalt 384 st)
- X is not defined. (totalt 319 st)
- X is assigned a value but never used. (totalt 93 st)
- Unexpected console statement. (totalt 3 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- `content-type=".*javascript.*"` in: #42: otBannerSdk.js, antal grupperade fel: 5 ( 4.00 betyg )
- `content-type=".*javascript.*"` in: #42: otBannerSdk.js, antal fel: 866 ( 1.00 betyg )
- X is defined but never used. (totalt 412 st)
- X is not defined. (totalt 320 st)
- X is assigned a value but never used. (totalt 93 st)
- Unexpected console statement. (totalt 40 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
Integritet & säkerhet
- `< script>` in: #12: , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #12: , antal fel: 1 ( 4.80 betyg )
- Expected X and instead saw X. (totalt 1 st)
- `< script src="...">` in: #12: , antal grupperade fel: 3 ( 4.40 betyg )
- `< script src="...">` in: #12: , antal fel: 21 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 18 st)
- Expected X and instead saw X. (totalt 2 st)
- Do not access Object.prototype method X from target object. (totalt 1 st)
- `content-type=".*javascript.*"` in: #13: scripts.min.js, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #13: scripts.min.js, antal fel: 1 ( 4.80 betyg )
- Parsing error: Identifier X has already been declared (totalt 1 st)
- `content-type=".*javascript.*"` in: #14: i18n.ashx, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #14: i18n.ashx, antal fel: 1 ( 4.80 betyg )
- Parsing error: Identifier X has already been declared (totalt 1 st)
- `content-type=".*javascript.*"` in: #27: richtext-tracki, antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #27: richtext-tracki, antal fel: 2 ( 4.60 betyg )
- Parsing error: Identifier X has already been declared (totalt 1 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #28: CarouselSlider., antal grupperade fel: 2 ( 4.60 betyg )
- `content-type=".*javascript.*"` in: #28: CarouselSlider., antal fel: 9 ( 3.20 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 8 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: slick.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #29: slick.min.js, antal fel: 122 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 98 st)
- Expected X and instead saw X. (totalt 21 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: picturefill.min, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #30: picturefill.min, antal fel: 183 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 137 st)
- Expected X and instead saw X. (totalt 25 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary escape character: \*. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: footer.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #31: footer.js, antal fel: 183 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 137 st)
- Expected X and instead saw X. (totalt 25 st)
- Unnecessary escape character: \.. (totalt 4 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary escape character: \*. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- X is not modified in this loop. (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: tether.min.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #32: tether.min.js, antal fel: 286 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 217 st)
- Expected X and instead saw X. (totalt 42 st)
- Unnecessary escape character: \.. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary escape character: \*. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #33: Navigation.js, antal grupperade fel: 14 ( 2.20 betyg )
- `content-type=".*javascript.*"` in: #33: Navigation.js, antal fel: 342 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 272 st)
- Expected X and instead saw X. (totalt 43 st)
- Unnecessary escape character: \.. (totalt 4 st)
- X is not modified in this loop. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- Do not access Object.prototype method X from target object. (totalt 2 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary escape character: \*. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unnecessary escape character: \/. (totalt 2 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #35: gtm.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #35: gtm.js, antal fel: 2793 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1399 st)
- Unnecessary escape character: \/. (totalt 974 st)
- Expected X and instead saw X. (totalt 276 st)
- Do not access Object.prototype method X from target object. (totalt 103 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary escape character: \*. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #39: otSDKStub.js, antal grupperade fel: 22 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #39: otSDKStub.js, antal fel: 2863 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1457 st)
- Unnecessary escape character: \/. (totalt 974 st)
- Expected X and instead saw X. (totalt 288 st)
- Do not access Object.prototype method X from target object. (totalt 103 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary escape character: \*. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- The Function constructor is eval. (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #42: otBannerSdk.js, antal grupperade fel: 23 ( 1.00 betyg )
- `content-type=".*javascript.*"` in: #42: otBannerSdk.js, antal fel: 3963 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2387 st)
- Unnecessary escape character: \/. (totalt 974 st)
- Expected X and instead saw X. (totalt 450 st)
- Do not access Object.prototype method X from target object. (totalt 106 st)
- X is not modified in this loop. (totalt 7 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- The Function constructor is eval. (totalt 3 st)
- Unsafe usage of ThrowStatement. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 3 st)
- Unnecessary escape character: \:. (totalt 2 st)
- Unnecessary escape character: \+. (totalt 2 st)
- Unnecessary escape character: \*. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \). (totalt 2 st)
- Unexpected string concatenation of literals. (totalt 2 st)
- Parsing error: Identifier X has already been declared (totalt 1 st)
- eval can be harmful. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- Unnecessary escape character: \_. (totalt 1 st)