Home › Forums › JavaScript › Beset Practices for adding jQuery code before tag › Reply To: Beset Practices for adding jQuery code before tag
January 6, 2016 at 1:41 pm
#236465
Shikkediel
Participant
it should use some sort of document ready
It does already – this is shorthand for it :
jQuery(function ($) { ... });
If you’re placing it inside the HTML structure, it will indeed need script tags around it.