IT lexicon › Web › Render-Blocking JavaScript

Render-Blocking JavaScript

Web På svenska → Updated: 2026-11-16

JavaScript code that runs on the main thread, halts HTML parsing, and makes the page unresponsive until execution completes.

A large or expensive `

Best practice: move scripts to the end of ``, use `defer` for scripts that don't need to run immediately, split large JavaScript bundles into chunks, and offload heavy computation to Web Workers. Every millisecond of JavaScript execution on the main thread risks missing a 60 Hz frame.

← Back to the lexicon