jQuery page load
<p>I see people using all these different techniques with jQuery. I know the 2nd technique will run on page load. But when will the 1st and the 3rd functions fire? The third technique is used in plugins to avoid conflict right? But that will fire before page load surely? I also added a 4th technique. I would like to know when you should/shouldn't use each technique. And if any of them are bogus let me know!</p>

<p>1st</p>

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

})(jQuery);
</code></pre>

<p>2nd</p>

<pre><code>$(document).ready(function(){

});
</code></pre>

<p>3rd</p>

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

}());
</code></pre>

<p>4th</p>

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

}); 
</code></pre>

<p>5th</p>

<pre><code>(function(){

})();
</code></pre>
