"$().ready(handler)" in example not recommended

As "$().ready(handler)" is not recommended(http://api.jquery.com/ready/)