HeadHodge
Active member
I'm unit testing my code before I include it in one of my templates.
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";
Thanks
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";
Thanks