$(function(){});, (function($)(){}(JQuery); and $(document).ready(function(){}); any difference?
<p>I have a very strange issue with JQuery, its about a starting of JQuery code when document is ready, as I know there is no difference to use one of methods <code>$(function(){//CODE});</code>, <code>(function($)(){//CODE}(JQuery)</code> or <code>$(document).ready(function(){//CODE});</code>.</p>

<p>Like what said on <a href="http://stackoverflow.com/questions/593292/what-is-the-difference-between-document-readyfunction-and-function">What is the difference between $(document).ready(function() and $(function() ?</a></p>

<p>So I like always to use <code>$(function(){//CODE});</code> method, but when I using this method in some pages working well, but in another I got errors like If I use <code>$.fn.extend</code> or <code>$.browser.msie</code> , I'll get '$.fn is undefined' issue, tried to use <code>(function($)(){//CODE}(JQuery)</code> and that error disappeared, I just want to know why this happening and really if there is and difference between each method !</p>
