7
Gilles
8y

Just a quick Tip for our jQuery Users: There is a difference between $(document).ready() and $(document).on("ready")! I learnt it the hard way :)

Comments
  • 3
    What happen?
  • 3
    Sooo, what is it then? Don't leave us hanging!
  • 2
    The "on" Variant Just triggered when the document fires the ready event. The other variant Checks if the document is already ready. If it is already ready, the callback is called instantly. Otherwise it waits for the document to trigger the ready event.
  • 0
    @Gilles Ahh good to know! I thought it would probably be something like that. Thanks for sharing
Add Comment