documento jQuery pronto
// jQuery document ready
$(document).ready(function() {
});
Ugly Unicorn
// jQuery document ready
$(document).ready(function() {
});
// A $( document ).ready() block.
$( document ).ready(function() {
console.log( "ready!" );
});
// A jQuery( document ).ready() block.
jQuery( document ).ready(function() {
console.log( "ready!" );
});
document.addEventListener("DOMContentLoaded", function(event) {
//we ready baby
});
Two syntaxes can be used for this:
$( document ).ready(function() {
console.log( "ready!" );
});
Or the shorthand version:
$(function() {
console.log( "ready!" );
});
// A $( document ).ready() block.
$( document ).ready(function() {
console.log( "ready!" );
});