Where is the appropriate place to put the Bootstrap.min.js and the JQuery.min.js scripts in my html document. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Where is the appropriate place to put the Bootstrap.min.js and the JQuery.min.js scripts in my html document.

Am looking at some videos in youTube and some tutors place the scripts in the head tag while others place them in the body tag so which part do you guys prefer?

3rd May 2020, 11:18 AM
Michael Onyando
Michael Onyando - avatar
1 Answer
+ 6
I would prefer you to put the scripts, styles and other cdn on the head element, Because if a program runs, it will first take the head part and then it will take body, In some cases the absolute results may interupt while putting scripts on body tag, Better i would recommend you to make document with external elements, on scripts on head tag https://www.w3schools.com/js/js_whereto.asp https://www.quora.com/Where-is-the-best-place-to-insert-script-tags-in-a-webpage https://www.tutorialspoint.com/Where-should-I-put-script-tags-in-HTML-markup Refer this links
3rd May 2020, 11:32 AM
Gouse Basha
Gouse Basha - avatar