yoReady(fn)

The ready method makes sure that code is only executed when all DOM elements are safe to be manipulated.

yoReady(function () {
    console.log('Fired only when the document is ready');
})

Go to index