Are the end results of the following jQuery snippets identical?
Snippet 1:
$(function() { alert('test!'); });
Snippet 2:
$(document).ready(function() { alert('test!'); });
In other words, is $(function(){}) just shorthand for $(document).ready(function() { });?
The reason I'm asking is because we're seeing some strange issues with a small application we've built using jQuery and jQuery UI. Occasionally, when performing a form submit action by clicking a button the browser window will just freeze. We can still use the underlying browser window (the one that launches the pop-up) until we perform some actions there. The users can only continue by force closing the browser (Internet Explorer, obviously). We suspect this is related to the Acrobat PDF plug-in, but I'm just checking all the angles here, because I found this issue which seems to exhibit similar behaviour.