Is there a way to check document.ready() if jQuery is not available? [duplicate]

Here you go:

var tid = setInterval( function () {
    if ( document.readyState !== 'complete' ) return;
    clearInterval( tid );       
    // do your work
}, 100 );

Read about the document.readyState property here. I am not sure if all current browsers implement it.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)