มีเอกสารที่ดีมากเกี่ยวกับวิธีการตรวจสอบว่าเอกสารโหลดโดยใช้ Javascript หรือ Jquery
การใช้ Javascript ดั้งเดิมสามารถทำได้
if (document.readyState === "complete") {
 init();
 }
สิ่งนี้สามารถทำได้ภายในช่วงเวลา
var interval = setInterval(function() {
    if(document.readyState === 'complete') {
        clearInterval(interval);
        init();
    }    
}, 100);
เช่นโดย Mozilla
switch (document.readyState) {
  case "loading":
    // The document is still loading.
    break;
  case "interactive":
    // The document has finished loading. We can now access the DOM elements.
    var span = document.createElement("span");
    span.textContent = "A <span> element.";
    document.body.appendChild(span);
    break;
  case "complete":
    // The page is fully loaded.
    console.log("Page is loaded completely");
    break;
}
ใช้ Jquery เพื่อตรวจสอบเฉพาะในกรณีที่ DOM พร้อม
// A $( document ).ready() block.
$( document ).ready(function() {
    console.log( "ready!" );
});
เพื่อตรวจสอบว่าโหลดทรัพยากรทั้งหมดใช้ window.load หรือไม่
 $( window ).load(function() {
        console.log( "window loaded" );
    });