[jQuery] $(document).ready() vs $(function () {});

[jQuery] $(document).ready() vs $(function () {});


I am seeing more and more references to using the $(function() {}); format for
the ready method. Is there a compelling reason for this? Or will
$(document).ready() perform as well?
Or perhaps I'm mis-understanding what the newer format is being used for?
Thanks for any tips.
Shawn