When I use the jQuery.document.ready function outside of xenforo, it works fine. But when I include it in a template it doesn't work.
I've read that "nesting" document.ready is not possible. So does that mean document.ready is being handled before my template gets called, or should it work and I'm doing something wrong??
Is there an easy way to test if the document is ready or not when it hits my template?
The jQuery version that is being used by my xenforo install is "1.11.x";