Table Of Content
<a> has both href and onclick attributes
If a link with an href attribute and an onclick attribute is found, the URL is flagged with this hint.
<a href="http://example.com/page.html" onclick="alert('hello world');">Link</a>
<a href="http://example.com/page.html" onclick="document.href='http://example.com/page1.html';">Link</a>
We suggest that you check instances of onclick attributes in HTML links and decide if the onclick usage is required. Remove any onclick attributes that are not needed.
<script> loaded multiple files from local domain
In HTTP 2, multiple files are transferred using a single connection. The limitation regarding the number of requests from HTTP 1.0 and HTTP 1.1 does not apply.
HTTP 2: No changes required.
<script> more than 3 KB within HTML
- waste of bandwidth
- lower performance
- poor overall user experience