I have a page for registration, and some of the JS is only for this page, and the other JS is for 3 different pages. So, the JS for this page only I have written inside tags, and the second in and external file, which was included in the body tag
Code example
HTML
...
<script type="text/javascript" scr="src.js"></script>
<script type="text/javascript">
//some JS and jQuery code
</script>
In which order does the browser load the web page? If it is reading HTML, when it finds first script does it load this script, wait until it is completely loaded and then continue reading HTML?
Because in the internal JS I use some functions from external an script such as jQuery $(document).ready() function, and I want to know, if this event is triggered when DOM is ready, so this means the function is external JavaScript?