Document Write

Non utilizzare document.write

Speed performance

Do not use document.write()

Page content can be delayed if you use document.write().

If you use it, notice that browsers can show error messages in some cases:

  • Chrome DevTools Console:

[Violation] Avoid using document.write().

  • Firefox DevTools Console:

An unbalanced tree was written using document.write() causing

data from the network to be reparsed.

 

How the SeoChecker document.write() audit is displayed

If a document.write() is not blocked by Chrome, SeoChecker will notify it in a table like the one below:

 

You should delete document.write() and use asynchronous loading.

Condividi questa Guida.

Ti è piaciuta? Condividila!

Share it!

Web tools per sviluppatori moderni. Provali!

Generatori, builder e validatori per migliorare le tue performance di ottimizzazione SEO e web

Home Back to top of the page