Reply to
:
As many times as you like. They fire in order of declaration.
$(document).ready()
will fire when the document is ready (when it’s all loaded by the browser). The other one will fire as soon as that part of the script executes.
Programmer, engineer, scientist, critic, gamer, dreamer, and kid-at-heart.
As many times as you like. They fire in order of declaration.
$(document).ready()
will fire when the document is ready (when it’s all loaded by the browser). The other one will fire as soon as that part of the script executes.
ready
or hyper-overloaded$
function). You can declare your function you pass into those anywhere. (A small point, but precision can really matter with these things.) http://jsbin.com/ulevi3$(function() { ... })
is actually equivalent to$(document).ready(function() { ... })