How to Conditionally Load JavaScript files

Minimizing asset loading time and increasing performance of a website is a web-developer's first priority. These days most websites depend heavily on several JavaSript and CSS files including third-party ones. You can add all of them in your head tag (or at the end of body). Or you can lazy-load...