difference between Immediately-Invoked Function and jQuery Immediately-Invoked Function
<p>i have read that <code>(function(){})();</code> is called immediately and doesn't need to be called.
and <code>$(function());</code> is also immediately called.</p>

<ul>
<li>are they both and have same functionality ?</li>
<li>does the Immediately-Invoked Function loaded after the document is completely loaded ?</li>
<li>what is the actual funcitonality of <code>$(fucntion());</code> ?</li>
<li>does <code>$(fucntion());</code> after the document is completely loaded ?</li>
</ul>
