jQuery extreme shorthand tends to trick the eye sometimes.
Look at the design: a function is called with a name $, with the function as an argument. This is not the same as defining a function for later use, for examplefunction test() { .... }
$is a jQuery shortcut for a finished document. The function passed to it will be launched after the document is loaded.
source
share