[Violation] Avoid using document.write()
See original GitHub issueThis is coming from:
if (doc.body.children.length < 1) {
doc.open('text/html', 'replace');
doc.write(this.props.initialContent);
doc.close();
}
In Firefox this is an error and the frame won’t load: DOMException: "The operation is insecure."
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Avoid using document.write() occurs when trying to load a ...
The violation message is caused by browserSync that will add the following line to the document. ... [CDATA[ document.write("<script async ...
Read more >Uses document.write() - Chrome Developers
[Violation] Avoid using document.write(). In the Firefox DevTools Console you'll see this message: An unbalanced tree was written using document ...
Read more >Avoid Using Document.Write: What Is It and Why You Should ...
Accelerated web pages: Research by Chrome underlines how harmful Document.Write can be to the performance of websites. A test by Chrome revealed ...
Read more >Why you should avoid using document.write, specifically for ...
Generally, you should avoid the use of blocking JavaScript. “Defer” and “async” attributes will let you invoke external scripts asynchronously.
Read more >[Violation] Avoid using document.write(). - WordPress.org
Hello, the plugin does not use document. write for any client-side function. However, it can warn you if you are using a code...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
v5 is now the latest release
Hey @anthonyxiques
No worries I think it has sat enough for me to push out a new major release, I assume you’ve tested your implementation with the alpha release and it all works as expected?
I’ve been meaning to setup the sponsor feature for a while now so maybe when that’s done you can donate me a coffee!