search

Home  >  Q&A  >  body text

javascript - Using docuemnt.write() to write js on the page when the document stream is not closed, will it cause page blocking?

When the document flow has not yet ended, will it cause js to block by externally moving it into js through document.write('')?
For example:

document.write('<script src="js/index.js"></script>
某草草某草草2713 days ago823

reply all(1)I'll reply

  • 怪我咯

    怪我咯2017-06-20 10:08:46

    Definitely, it’s best not to use document.write

    reply
    0
  • Cancelreply