jQuery Document Ready Shortcut

Here’s a quick tip. Instead of writing:

$(document).ready(function() {
// Code and functions here
});

We can instead write:

$().ready(function() {
// Code and functions here
});

or even:

$(function() {
// Code and functions here
});

Albeit, it isn’t a huge code reduction but it is a nice shortcut.