Document Write

Do not use 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.

Share this Guide

Did you like it? Share it!

Share this tool

Web tools for modern developers. Try these one!

Over 50 generators, builders and validators to improve your SEO and web performances

Home Back to top of the page