JQUERY $(function() { initialisation
<p>I've been working with JQuery for some time now and I've always used the following to initalise my javascript:</p>

<pre><code>$(document).ready( function() {
// Initalisation logic
});
</code></pre>

<p>However, recently I've noticed a lot of examples using the following:</p>

<pre><code>$(function() {

});
</code></pre>

<p>Whats the difference?</p>

<p>Thanks</p>
