Forums

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

Home Forums JavaScript /SOLVED/ What is wrong? (toggle) Reply To: /SOLVED/ What is wrong? (toggle)

#180038
dyr
Participant

Alternatively, you can follow current best practices and put all your javascript just before the closing body tag and omit the .ready() call since by the time your JS executes the document will be ready.

There are certain exceptions to this best practice but in general most external JS files should be loaded at the end of the document before the closing body tag.