Why you should remove render-blocking JavaScript

External script can cause the parser to wait for the resource to download which can delay the time for the page to render. You should avoid and minimize the use of blocking Javascript, especially external scripts that need to be fetched before they are executed. You can inline small scripts to avoid extra network requests similar to how we optimize CSS delivery. Another solution to this is by making JavaScript asynchronous or by deferring the JavaScript.

Filed under: DocumentationWebsite Performance
Tags: , , , ,