I am just starting to learn JS. So, correct if I misunderstand something. There is such jquery code:
$(document).ready(function () {...}); .
I understand this event, which starts after downloading the html code. I need to write the code in the event before loading html and all the rest. I understand that the easiest way is to heraknut somewhere in the middle of html - <script>...</script> , but this doesn’t look aesthetically pleasing =) I used the following code:
$(window).on('load', function () {...}); Am I correct? If not, then how?
$(document).readynot like? - Pleshevskiybodytag we put the script and you can call without$(document).ready- Pleshevskiy