Skip to content

noSyncScripts

biome.json
{
"linter": {
"rules": {
"nursery": {
"noSyncScripts": "error"
}
}
}
}

Prevent the usage of synchronous scripts.

A synchronous script can impact your webpage performance, read more on how to Efficiently load third-party JavaScript.

<script src=""></script>
code-block.html:1:1 lint/nursery/noSyncScripts ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Unexpected synchronous script.

> 1 │ <script src=""></script>
^^^^^^^^^^^^^^^
2 │

Synchronous scripts can impact your webpage performance. Add the “async” or “defer” attribute.

<script src="" async></script>
<script src="" defer></script>