(jQuery )Â - .ready function shortcut
Usually we use this default function arround our jQuery to prevent to load any jQuery code before the docuent finished to load.
$(document).ready(function(){ //some jQuery });
This is one of the first thing what You learn about the jQuery libriary.
It is a bit pain to type in and not to mention it makes the code a bit less clean but thankfully there is a shortening:
$(function(){ //some jQuery })
But keep in mind: if you are a novice it is good to get used to with the default jQuery syntaxes so it won´t hurt you to type a bit more.
In that case if You are not a novice anymore and You will have huge chunk of codes the original form keeps your code more organised, more searchable.














