EN, Change language
Englishالعربية
BH-100

Scripts load at the end of the page, or deferred, so they do not block rendering.

The requirement

Scripts load at the end of the page, or deferred, so they do not block rendering.

Why it matters to users

A script in the head stops the page rendering until it has downloaded and run, leaving the citizen on a blank screen. On mobile data those seconds can stretch until they give up.

How to fix it

Add defer to script tags in the head, or move them to the end of the body, keeping in the head only what the site cannot work without. Then scan again.

How we measure it

Parser-blocking scripts in the <head> of the served HTML (scripts inserted at run time are async and do not count).

Its official source

Related rules

Scripts deferred · Bahrain BH-100 | xfix