Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Beset Practices for adding jQuery code before tag Reply To: Beset Practices for adding jQuery code before tag

#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.