Window loading

at timestamp 2:10 he says the page doesnt exist yet…what does that really mean…he says that the script element is in head thats is the problem…what is really happening back there…is the entire JS file read completely before moving further beyond the script eklement in HTML file…and what is asynchronous running

Hi @discobot,

  • At the time of this statement(head tag) the element doesn’t exist . So you have to put the script tag at the end of the body tag. So that the when JS get parsed and gets executed then It can find the HTML element and executes the statements. For deeper reference you can visit link.

  • Asynchronous programming is a technique that enables your program to start a potentially long-running task and still be able to be responsive to other events while that task runs, rather than having to wait until that task has finished. Once that task has finished, your program is presented with the result. For deeper reference you can visit link.

Hi! To find out what I can do, say @discobot display help.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.