I know this will sound like a silly question, but since I am learning jQuery as an example, I found that the placement of scripts and functions varies greatly from example to example. The thing is, somewhere I read that the .onReady function should be located below everything else to ensure that the entire DOM is actually ready and something like that.
The question is simply this, besides the truncated script tags, is there a best practice of where the jquery should be located in the PHP file? What about one-time inline scripts? Sorry for the naive nature of this, but I would try these examples โcorrectlyโ as I figured out how to put it all together.
There seem to be some very insightful people on this site, so well in advance for any guidance! :)
Apparently, it was not as stupid as I thought - thanks to everyone for understanding - I feel a little more clarity about what I was trying to understand in the big picture.
source
share