EN, Change language
Englishالعربية
3.57

JavaScript at the end of the page

Official text (as TDRA published it)

Have you ensured JavaScript is placed at the end of your website?

Why it matters to your customers

A script in the head without defer or async stops the page from showing until it has downloaded and run. Customers on a phone stare at a white screen and may leave before anything appears.

How to fix it

Move scripts to the end of the page, or add defer, async or type="module" to them, then scan again.

How we measure it

We check no script blocks rendering from the head: scripts sit at the end, or use defer, async or type=module.

The official guideline for this item

Related rules

JavaScript at the end of the page · UAE 3.57 | xfix