documento jQuery pronto
// jQuery document ready
$(document).ready(function() {
});
Ugly Unicorn
// jQuery document ready
$(document).ready(function() {
});
document.addEventListener("DOMContentLoaded", function() {
// code
});
// Pure JS document ready ...
document.addEventListener('DOMContentLoaded', (event) => {
//the event occurred
})
document.addEventListener("DOMContentLoaded", function(event) {
//we ready baby
});
// without jQuery (doesn't work in older IEs)
document.addEventListener('DOMContentLoaded', function(){
// your code goes here
}, false);
window.onload = function() {
};