Tuesday, September 17, 2013

dropping $(document).ready in jQuery

$(document).ready(function() {
   yawn();
});

...may be simplified as...

$(function() {
   yawn();
});

No comments:

Post a Comment