W
W
Well here again 252018-02-01 15:38:27
JavaScript
Well here again 25, 2018-02-01 15:38:27

Is the window.onload event needed if the scripts are in the body?

Do I understand correctly that if the script tag is located at the end of the document body, then there is no point in the onload event because the entire document is immediately available to the script?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
weranda, 2018-02-01
@weranda

The other day I asked myself almost the same question - here it is (with explanations from kind people). Draw your own conclusions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question