Hi all,

as my number of $(function(){...}); adds up, I wonder what the best practice
here is?

For example, is there a performance difference in the following, or is one
way simply better than the other?:

$(function(){
  // some stuff
});

$(function(){
  // some stuff
});

$(function(){
  // some stuff
});


or


function init(){
 // my functions
};

$(function(){
  init();
});



Adam

-- 
View this message in context: 
http://www.nabble.com/%24%28function%28%29%7B...%7D%29--best-practice--tf2724966.html#a7598829
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to