$(document).ready(function() VS $(function(){

Viewed 80799

Possible Duplicate:
what is difference of $(function(){ }); and $(document).ready(function() { }) ;?

What are the differences between $(document).ready(function(){}) vs $(function(){}) and should I write it in the $ form or the new jQuery(document).ready(function(){ }) way?

If I have google api loaded is google.setOnLoadCallback(function() { a better way? or is it the same thing?

I've also seen people use $(function($){})

Can somebody help me, I'm lost. I bugs me when I don't know the code I write. I guess I should read through the library. Are the all being defined as the same thing?

3 Answers
Related