In Every website, We have to include the JavaScript. We need to include multiple JavaScript file in single web page.
It's always prefer to include the javascript at the bottom of the page so that loading of content remain fast. So we should add at the bottom of the page.
We should also load the JavaScript files asynchronously, means load JavaScript file parallel.
There are two ways to load JavaScript file. Newer browsers have async attribute which load JavaScript asynchronously.
Use custom JavaScript function to load javascript-file asynchronously.
Just call the loadScript function to load javascript file asynchronously. For Example.