A script on your page has both the `async` and `defer` attributes. This is confusing for the browser. While it won't break your site (browsers will typically just use `async`), it's messy code. It's better to be clear about how you want your scripts to load.
<script src="/js/main.js" async defer></script>
Choose one. Use `defer` for scripts that need to run in order after the page is parsed. Use `async` for independent scripts where the execution order doesn't matter.
<script src="/js/main.js" defer></script> <!-- Or async, but not both -->
Providing a single, clear instruction for script loading follows best practices and makes your code easier for other developers (and the browser) to understand.
This issue can affect your site's search engine rankings and user experience. Addressing it promptly helps ensure optimal performance and visibility in search results.
Black SEO Analyzer automatically checks for this warning during site analysis, along with hundreds of other technical SEO issues.
Choose the license that fits your needs and start getting the deep, actionable insights you deserve.