title: Another questionable jQuery Quiz answer at W3Schools
body: <p>There is a jQuery quiz posted on the W3Schools site here...</p>
  <p><a href="http://www.w3schools.com/quiztest/quiztest.asp?qtest=jQuery" rel="nofollow noreferrer">http://www.w3schools.com/quiztest/quiztest.asp?qtest=jQuery</a></p>
  <p>Question #16 is as follows,</p>
  <blockquote>
  <p>Which jQuery function is used to prevent code from running, before the document is finished loading?</p>
  <p>A. $(document).load()</p>
  <p>B. $(document).ready()</p>
  <p>C. $(body).onload()</p>
  </blockquote>
  <p>I got it wrong by picking answer A. (their official answer is B.)</p>
  <p>I answered it, thinking that I knew the following,</p>
  <ol>
  <li><p>document.load fires after <em>everything</em> on the page loads <strong>including</strong> all images</p>
  </li>
  <li><p>document.ready fires only after the DOM is loaded (not necessarily all the images have been loaded)</p>
  </li>
  </ol>
  <p>I interpreted the original question's wording of, &quot;document is finished loading&quot;, to include everything (with all the images).  After all, I thought that's why they called it &quot;document.load&quot;.  Also for their answer to be correct, you'd have to conclude that &quot;DOM&quot; is the equivalent to &quot;document&quot;.  This does not seem right otherwise why call it &quot;document object model&quot; (DOM) instead of just &quot;document&quot;?</p>
  <p>Despite the W3School claim that B is the correct answer, what is really the correct answer?</p>
  <p>Thank-you for your thoughts.</p>
  <p><strong>Sidenote:</strong>  Quoting my own comments in <a href="https://stackoverflow.com/questions/5710350/w3schools-jquery-quiz-question">my other related question</a>...</p>
  <p><em>&quot;I actually learn most of my jQuery over at the jQuery site and come search here at StackOverflow when I get stuck. I was mostly playing around with the quiz at W3School because I was investigating their &quot;prerequisites&quot; for jQuery Certification. I don't consider myself to be a jQuery expert but I easily scored 95% (19/20) on their quiz. Seeing the improper wording in that answer, I figured I'd confirm what I already suspected by posting here. My opinions on these kinds of certifications are now shifting.&quot;</em></p>
  <hr />
  <p><strong>EDIT:</strong></p>
  <p>I notified the W3Schools of the existence of this thread.</p>
  <hr />
  <p><strong>EDIT 2:</strong></p>
  <p>When I answered the original quiz question, I was thinking of $(window).load(), therefore my quiz answer was clearly incorrect.  I believe this fact leaves none of the three multiple choice options as the correct answer.  See my detailed answer below.</p>