jQuery: Shorter Document Ready
The normal way of instantiating jQuery is with a document ready, below:
$(document).ready(function() {
alert('The document is ready');
});
However, we can get the exact same result this way:
$(function() {
alert('The document is ready');
});