Aller au contenu

noSyncScripts

Ce contenu n’est pas encore disponible dans votre langue.

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.

This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information.

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