$(document).ready(function() { alert(1); }); $(function() { alert(2); }); jQuery(function($){ alert(3); });