KOWFM

document.ready for jQuery

So I've had to look this up so many times that I decided to write about it.

When using Javascript on a webpage it's important to execute your code only after all the content has been loaded. You do this with a $(document).ready() function. I always forget the specific syntax to do this so I thought I would include it here:

I hope that this is helpful.