Which way of checking for Document ready() is better in jQuery from a performance point of view?
<p>I've read <a href="http://viralpatel.net/blogs/20-top-jquery-tips-tricks-for-jquery-programmers/" rel="nofollow">an article about 20 top jQuery tips</a> that uses the below code snippet:  </p>

<pre><code>//Use
$(function(){
    //document ready
});
</code></pre>

<p>is better than using the below code:  </p>

<pre><code>//Instead of
$(document).ready(function() {
    //document ready
});
</code></pre>

<p>I've always used the second code snippet. Is there any benefit on using the first one? Why is the second code snippet is better from performance perspective?</p>
