How should I initialize jQuery?
The first example runs the function when the DOM tree is built. The second example runs the function right away. If you look closely, in the second example, there are two parentheses after the function declaration ( in this particular case, you pass in the global jQuery object as an argument to avoid conflict ), thereby immediately … Read more