Where to load jQuery
Posted: Tue Oct 21, 2025 8:06 pm
(For those of us still on old versions of Phoenix, and still using jQuery ...)
Where is the best place on a page to load it? When I had it loading in the footer, I was getting error(s):
Uncaught ReferenceError: $ is not defined
When I moved loading it up in the header, these went away (and resolved some other problems I was having).
Is there a problem with loading jQuery in the header instead of the footer?
TIA
Malcolm
Where is the best place on a page to load it? When I had it loading in the footer, I was getting error(s):
Uncaught ReferenceError: $ is not defined
When I moved loading it up in the header, these went away (and resolved some other problems I was having).
Is there a problem with loading jQuery in the header instead of the footer?
TIA
Malcolm