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.67 av 5
- JS är dålig.
Webbstandard
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 4 ( 4.20 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 229 ( 1.00 betyg )
- X is defined but never used. (totalt 184 st)
- Unexpected console statement. (totalt 27 st)
- X is not defined. (totalt 17 st)
- X is assigned a value but never used. (totalt 1 st)
- `< script>` in: #45: bc-v4.min.html, antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #45: bc-v4.min.html, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #10: accessibility-s, antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #10: accessibility-s, antal fel: 1 ( 4.80 betyg )
- X is defined but never used. (totalt 1 st)
- `content-type=".*javascript.*"` in: #11: main.component., antal grupperade fel: 1 ( 4.80 betyg )
- `content-type=".*javascript.*"` in: #11: main.component., antal fel: 2 ( 4.60 betyg )
- X is defined but never used. (totalt 2 st)
- `content-type=".*javascript.*"` in: #13: gtm.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #13: gtm.js, antal fel: 569 ( 1.00 betyg )
- X is defined but never used. (totalt 463 st)
- X is assigned a value but never used. (totalt 84 st)
- X is not defined. (totalt 21 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: ai.2.gbl.min.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #19: ai.2.gbl.min.js, antal fel: 658 ( 1.00 betyg )
- X is defined but never used. (totalt 549 st)
- X is assigned a value but never used. (totalt 84 st)
- X is not defined. (totalt 24 st)
- Unexpected console statement. (totalt 1 st)
- `content-type=".*javascript.*"` in: #26: uc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #26: uc.js, antal fel: 705 ( 1.00 betyg )
- X is defined but never used. (totalt 569 st)
- X is assigned a value but never used. (totalt 99 st)
- X is not defined. (totalt 25 st)
- Unexpected console statement. (totalt 12 st)
- `content-type=".*javascript.*"` in: #29: ivaheadersearch, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #29: ivaheadersearch, antal fel: 706 ( 1.00 betyg )
- X is defined but never used. (totalt 570 st)
- X is assigned a value but never used. (totalt 99 st)
- X is not defined. (totalt 25 st)
- Unexpected console statement. (totalt 12 st)
- `content-type=".*javascript.*"` in: #30: IVAMainNavigati, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #30: IVAMainNavigati, antal fel: 708 ( 1.00 betyg )
- X is defined but never used. (totalt 572 st)
- X is assigned a value but never used. (totalt 99 st)
- X is not defined. (totalt 25 st)
- Unexpected console statement. (totalt 12 st)
- `content-type=".*javascript.*"` in: #31: HeroBlock.compo, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #31: HeroBlock.compo, antal fel: 709 ( 1.00 betyg )
- X is defined but never used. (totalt 573 st)
- X is assigned a value but never used. (totalt 99 st)
- X is not defined. (totalt 25 st)
- Unexpected console statement. (totalt 12 st)
- `content-type=".*javascript.*"` in: #32: ArticleListBloc, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #32: ArticleListBloc, antal fel: 710 ( 1.00 betyg )
- X is defined but never used. (totalt 574 st)
- X is assigned a value but never used. (totalt 99 st)
- X is not defined. (totalt 25 st)
- Unexpected console statement. (totalt 12 st)
- `content-type=".*javascript.*"` in: #34: ArticleListTeas, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #34: ArticleListTeas, antal fel: 711 ( 1.00 betyg )
- X is defined but never used. (totalt 575 st)
- X is assigned a value but never used. (totalt 99 st)
- X is not defined. (totalt 25 st)
- Unexpected console statement. (totalt 12 st)
- `content-type=".*javascript.*"` in: #36: EventListBlock., antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #36: EventListBlock., antal fel: 712 ( 1.00 betyg )
- X is defined but never used. (totalt 576 st)
- X is assigned a value but never used. (totalt 99 st)
- X is not defined. (totalt 25 st)
- Unexpected console statement. (totalt 12 st)
- `content-type=".*javascript.*"` in: #38: EventTeaser.com, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #38: EventTeaser.com, antal fel: 713 ( 1.00 betyg )
- X is defined but never used. (totalt 577 st)
- X is assigned a value but never used. (totalt 99 st)
- X is not defined. (totalt 25 st)
- Unexpected console statement. (totalt 12 st)
- `content-type=".*javascript.*"` in: #40: TwoColumnDivide, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #40: TwoColumnDivide, antal fel: 714 ( 1.00 betyg )
- X is defined but never used. (totalt 578 st)
- X is assigned a value but never used. (totalt 99 st)
- X is not defined. (totalt 25 st)
- Unexpected console statement. (totalt 12 st)
- `content-type=".*javascript.*"` in: #42: NewsletterBlock, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #42: NewsletterBlock, antal fel: 715 ( 1.00 betyg )
- X is defined but never used. (totalt 579 st)
- X is assigned a value but never used. (totalt 99 st)
- X is not defined. (totalt 25 st)
- Unexpected console statement. (totalt 12 st)
- `content-type=".*javascript.*"` in: #46: cc.js, antal grupperade fel: 4 ( 4.20 betyg )
- `content-type=".*javascript.*"` in: #46: cc.js, antal fel: 743 ( 1.00 betyg )
- X is defined but never used. (totalt 591 st)
- X is assigned a value but never used. (totalt 105 st)
- X is not defined. (totalt 34 st)
- Unexpected console statement. (totalt 13 st)
Integritet & säkerhet
- `< script>` in: #1: Webbsida , antal grupperade fel: 1 ( 4.80 betyg )
- `< script>` in: #1: Webbsida , antal fel: 1 ( 4.80 betyg )
- Parsing error: Unexpected token : (totalt 1 st)
- `< script src="...">` in: #1: Webbsida , antal grupperade fel: 26 ( 1.00 betyg )
- `< script src="...">` in: #1: Webbsida , antal fel: 3722 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 2166 st)
- Expected X and instead saw X. (totalt 1347 st)
- Unsafe usage of ThrowStatement. (totalt 53 st)
- Do not access Object.prototype method X from target object. (totalt 41 st)
- Unnecessary escape character: \(. (totalt 20 st)
- Unnecessary escape character: \). (totalt 14 st)
- Async method X has no X expression. (totalt 12 st)
- Unnecessary escape character: \[. (totalt 11 st)
- Unnecessary escape character: \+. (totalt 9 st)
- Comparing to itself is potentially pointless. (totalt 8 st)
- Unnecessary escape character: \-. (totalt 7 st)
- X is not modified in this loop. (totalt 6 st)
- Unnecessary escape character: \/. (totalt 5 st)
- Unnecessary X. (totalt 5 st)
- Async function has no X expression. (totalt 4 st)
- Unnecessary escape character: \.. (totalt 3 st)
- Async function X has no X expression. (totalt 2 st)
- The Function constructor is eval. (totalt 1 st)
- Unnecessary escape character: \{. (totalt 1 st)
- Unnecessary escape character: \}. (totalt 1 st)
- Unnecessary escape character: \*. (totalt 1 st)
- Unnecessary escape character: \?. (totalt 1 st)
- Unnecessary escape character: \^. (totalt 1 st)
- Unnecessary escape character: \$. (totalt 1 st)
- Unnecessary escape character: \|. (totalt 1 st)
- Async arrow function has no X expression. (totalt 1 st)
- `< script>` in: #45: bc-v4.min.html, antal grupperade fel: 2 ( 4.60 betyg )
- `< script>` in: #45: bc-v4.min.html, antal fel: 2 ( 4.60 betyg )
- Expected X and instead saw X. (totalt 1 st)
- Expected an assignment or function call and instead saw an expression. (totalt 1 st)
- `content-type=".*javascript.*"` in: #13: gtm.js, antal grupperade fel: 9 ( 3.20 betyg )
- `content-type=".*javascript.*"` in: #13: gtm.js, antal fel: 1067 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 768 st)
- Expected X and instead saw X. (totalt 198 st)
- Do not access Object.prototype method X from target object. (totalt 83 st)
- Unnecessary escape character: \/. (totalt 9 st)
- X is not modified in this loop. (totalt 3 st)
- X is assigned to itself. (totalt 3 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Script URL is a form of eval. (totalt 1 st)
- `content-type=".*javascript.*"` in: #19: ai.2.gbl.min.js, antal grupperade fel: 13 ( 2.40 betyg )
- `content-type=".*javascript.*"` in: #19: ai.2.gbl.min.js, antal fel: 1536 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1181 st)
- Expected X and instead saw X. (totalt 234 st)
- Do not access Object.prototype method X from target object. (totalt 84 st)
- Unnecessary escape character: \/. (totalt 13 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 5 st)
- X is not modified in this loop. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary X. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #26: uc.js, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #26: uc.js, antal fel: 1888 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1422 st)
- Expected X and instead saw X. (totalt 336 st)
- Do not access Object.prototype method X from target object. (totalt 84 st)
- Unnecessary escape character: \/. (totalt 15 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #29: ivaheadersearch, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #29: ivaheadersearch, antal fel: 1891 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1424 st)
- Expected X and instead saw X. (totalt 337 st)
- Do not access Object.prototype method X from target object. (totalt 84 st)
- Unnecessary escape character: \/. (totalt 15 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #30: IVAMainNavigati, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #30: IVAMainNavigati, antal fel: 1895 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1426 st)
- Expected X and instead saw X. (totalt 339 st)
- Do not access Object.prototype method X from target object. (totalt 84 st)
- Unnecessary escape character: \/. (totalt 15 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #31: HeroBlock.compo, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #31: HeroBlock.compo, antal fel: 1895 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1426 st)
- Expected X and instead saw X. (totalt 339 st)
- Do not access Object.prototype method X from target object. (totalt 84 st)
- Unnecessary escape character: \/. (totalt 15 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #32: ArticleListBloc, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #32: ArticleListBloc, antal fel: 1895 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1426 st)
- Expected X and instead saw X. (totalt 339 st)
- Do not access Object.prototype method X from target object. (totalt 84 st)
- Unnecessary escape character: \/. (totalt 15 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #34: ArticleListTeas, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #34: ArticleListTeas, antal fel: 1895 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1426 st)
- Expected X and instead saw X. (totalt 339 st)
- Do not access Object.prototype method X from target object. (totalt 84 st)
- Unnecessary escape character: \/. (totalt 15 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #36: EventListBlock., antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #36: EventListBlock., antal fel: 1895 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1426 st)
- Expected X and instead saw X. (totalt 339 st)
- Do not access Object.prototype method X from target object. (totalt 84 st)
- Unnecessary escape character: \/. (totalt 15 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #38: EventTeaser.com, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #38: EventTeaser.com, antal fel: 1895 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1426 st)
- Expected X and instead saw X. (totalt 339 st)
- Do not access Object.prototype method X from target object. (totalt 84 st)
- Unnecessary escape character: \/. (totalt 15 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #40: TwoColumnDivide, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #40: TwoColumnDivide, antal fel: 1895 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1426 st)
- Expected X and instead saw X. (totalt 339 st)
- Do not access Object.prototype method X from target object. (totalt 84 st)
- Unnecessary escape character: \/. (totalt 15 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #42: NewsletterBlock, antal grupperade fel: 15 ( 2.00 betyg )
- `content-type=".*javascript.*"` in: #42: NewsletterBlock, antal fel: 1895 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1426 st)
- Expected X and instead saw X. (totalt 339 st)
- Do not access Object.prototype method X from target object. (totalt 84 st)
- Unnecessary escape character: \/. (totalt 15 st)
- X is assigned to itself. (totalt 6 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Script URL is a form of eval. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Unnecessary escape character: \[. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- `content-type=".*javascript.*"` in: #46: cc.js, antal grupperade fel: 17 ( 1.60 betyg )
- `content-type=".*javascript.*"` in: #46: cc.js, antal fel: 2242 ( 1.00 betyg )
- Expected an assignment or function call and instead saw an expression. (totalt 1732 st)
- Expected X and instead saw X. (totalt 375 st)
- Do not access Object.prototype method X from target object. (totalt 84 st)
- Unnecessary escape character: \/. (totalt 15 st)
- X is assigned to itself. (totalt 6 st)
- Script URL is a form of eval. (totalt 5 st)
- Unnecessary escape character: \.. (totalt 5 st)
- Unnecessary escape character: \-. (totalt 4 st)
- X is not modified in this loop. (totalt 3 st)
- Unnecessary escape character: \[. (totalt 3 st)
- Unnecessary X. (totalt 2 st)
- Unnecessary escape character: \@. (totalt 2 st)
- Unnecessary escape character: \(. (totalt 2 st)
- Comparing to itself is potentially pointless. (totalt 1 st)
- Unnecessary escape character: \". (totalt 1 st)
- Unnecessary escape character: \< . (totalt 1 st)
- Unnecessary escape character: \>. (totalt 1 st)