on ready document function executes when code example Example: jquery document ready // jQuery document ready $(document).ready(function() { });