what is difference between
$(function(){
});
and
$(document).ready(function() {
});
We have run into situations where IE9 does not run functions within $(function() {}); in the same manner or timing as $(document).ready(function(){});
The issue reared its head for us specifically in reading information out of a query string and processing and displaying that information on the screen, or using it to process a form. IE9 would process the information once it was cached with $(function(), and a user refreshed the page. But on first run, nothing worked right. However, once we switching from $(function(){}); to $(document).ready(), the issue was fixed. We changed NOTHING else.
I so look forward to the day I don't have to test for IE9 and lower.