InterviewSolution
Saved Bookmarks
| 1. |
When to use scripts in the head and when to use scripts in the body? |
|
Answer» If the scripts contain some EVENT-triggered FUNCTIONS or jquery library then we should use them in the head SECTION. If the script writes the content on the page or is not inside a function then it should be placed inside the body section at the BOTTOM. In short, follow below three points:
|
|