Title: [Violation] Avoid using document.write().
Last modified: December 25, 2020

---

# [Violation] Avoid using document.write().

 *  Resolved [Jedi82](https://wordpress.org/support/users/jedi82/)
 * (@jedi82)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/violation-avoid-using-document-write/)
 * Hy guys! Inspecting my site with Chrome J Console, I receive a lots of Warning
   I think related to the plugin (I tested with the plugin deactivated and after
   activated).
 * See here for screenshot (refer to ads): [https://prnt.sc/w9lqsx](https://prnt.sc/w9lqsx)
 * Also, if I check for page source code, the only 6 d.write functions are related
   to your (amazing) plugin:
 * [https://prnt.sc/w9lru2](https://prnt.sc/w9lru2)
    [https://prnt.sc/w9lsgy](https://prnt.sc/w9lsgy)
 * Can you please check and let me know? My site page: [https://prnt.sc/w9lsvy](https://prnt.sc/w9lsvy)
   
   Thanksssss

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/violation-avoid-using-document-write/#post-13832707)
 * Hello,
 * the plugin does not use document.write for any client-side function.
    However,
   it can warn you if you are using a code that uses this method (which may cause
   error if the ad code runs after the page is alreay loaded). [https://adinserter.pro/documentation/troubleshooting#document-write](https://adinserter.pro/documentation/troubleshooting#document-write)
 *  Thread Starter [Jedi82](https://wordpress.org/support/users/jedi82/)
 * (@jedi82)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/violation-avoid-using-document-write/#post-13833952)
 * Thank you as usual for the quick reply! Well, being in EU, I have to use this
   method (“Make sure you have Dynamic blocks set to client-side insert – TCF v2.0
   based cookie needs to be checked client-side (in the browser)”) sooooo I think
   I have no choice or alternative!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Violation] Avoid using document.write().’ is closed to new replies.

 * ![](https://ps.w.org/ad-inserter/assets/icon-256x256.jpg?rev=1502039)
 * [Ad Inserter - Ad Manager & AdSense Ads](https://wordpress.org/plugins/ad-inserter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ad-inserter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ad-inserter/)
 * [Active Topics](https://wordpress.org/support/plugin/ad-inserter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ad-inserter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ad-inserter/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Jedi82](https://wordpress.org/support/users/jedi82/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/violation-avoid-using-document-write/#post-13833952)
 * Status: resolved