Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6555483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:49:33+00:00 2026-05-25T12:49:33+00:00

I know there are lots of issues with using document.write and I avoid it

  • 0

I know there are lots of issues with using document.write and I avoid it absolutely. However, I have run into an issue with a 3rd party widget that is using it. I don’t quite know how to put into words (and also probably don’t know all the reasons) why this little slice of pure evil should be avoided.

I’ve already rewritten the code the 3rd party gives to inline their widget so that it doesn’t use document.write. However, that code loads a further script that uses it. I’m delaying the loading of the script which is causing its document.write calls to happen after onload, overwriting my entire page.

So the question is, what are all the issues with using document.write so that I can provide a comprehensive list on why the 3rd party should fix their code?

Thank you in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T12:49:34+00:00Added an answer on May 25, 2026 at 12:49 pm

    Quote from the following post:

    • Because inline scripts force user’s browser to wait for the code to
      complete (even if we have to wait for an external url to load) before
      rendering the rest of page.

    • Because we can’t further process (modify/duplicate etc) the output
      before embedding it in the actual webpage.

    • Also they bloat the xhtml code
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know there are LOTS of reasons why you would compose a certain object
1) I know there are lots of web sites that describe in what order
I know that there are lots of examples out there on this, but they
I know that there is an allocator for user applications than handles lots of
I know there have been a few threads on this before, but I have
I'm using Zend and want to know if there's any disadvantages to using it
I've run into an issue that I need clearer heads to think through. Occasionally
I know there are lots of truncate scripts out there, but I can't use
I know there are lots of questions about background images but I'm looking for
I know there are lots of questions to do with this already, and I've

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.