tyteen4a03
Well-known member
I need to run a bit of JavaScript in a template - it is dynamically generated with the template. How can I hook it up so it runs properly? Right now it seems to fire before xenforo.js is loaded and I think it causes my JavaScript to not fire correctly.
Should I wrap my code in $(function() {}) or XenForo.register?
Should I wrap my code in $(function() {}) or XenForo.register?