Sunday 9 December 2018

html - the tag with the jQuery library reference must be inside or tag?







I always thought that it's better to put it in the head (maybe because it is loaded first in the head and also to group all the scripts in the head for easy reading), but I found several examples over Internet (bootstrap documentation, MVC4... etc) where the script tag with the reference to jQuery () is inserted into the body:







Bootstrap 101 Template




Hello, world!









What's the best practice?

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...