Safely moving jQuery to the footer
Hello,
I want to insert jQuery in the footer instead of the header for performance gains and best practice.
<?php echo js('jquery-3.2.1.min').js($js); ?>
However, I get a least one complaint (found so far), is there an easy for the above console error?
comment_reply.js?c=:1 Uncaught ReferenceError: $ is not defined
Comments
<?=js('comment_reply', BLOG_FOLDER)?>
echo js('jquery-3.2.1.min').js($js);
echo js('comment_reply').js($js);
And got a complaint..
Uncaught SyntaxError: Unexpected token < in comment_reply.js?c=:1
<?=js('jquery-3.2.1.min').js($js)?> <?=js('comment_reply', BLOG_FOLDER)?>