Defer/async scripts
Detects render-blocking <script> tags in <head> without defer or async.
Warum ist das wichtig?
Scripts without defer or async in the <head> block HTML parsing until they are fully loaded and executed. This delays First Contentful Paint (FCP) and can slow down the page by several seconds.
Wie beheben Sie es?
Add defer to scripts that can execute after the DOM is loaded. Use async for scripts that are independent of the DOM (e.g. analytics). Move scripts before </body> if not possible.
Dieser Check bewertet von 0 bis 100. Unter 50 ist ein Fail, 50 bis 89 eine Warnung, 90 oder höher ist gut. Nach jedem Crawl sehen Sie die Note pro Seite im Report, mit einer kurzen Erklärung.
Häufige Fragen
Detects render-blocking <script> tags in <head> without defer or async.
Scripts without defer or async in the <head> block HTML parsing until they are fully loaded and executed. This delays First Contentful Paint (FCP) and can slow down the page by several seconds.
Add defer to scripts that can execute after the DOM is loaded. Use async for scripts that are independent of the DOM (e.g. analytics). Move scripts before </body> if not possible.
Beispiel
Kopieren Sie den Code unten und passen Sie Domain, Markenname und Inhalt an Ihre Situation an.
<script src="app.js" defer></script>