N
N
Nixtone2018-02-04 22:46:12
JavaScript
Nixtone, 2018-02-04 22:46:12

Why doesn't jquery assign values ​​after the first page load?

On jsfiddle, of course, everything is loaded at once, but in the browser, as it were, it’s not like that. After the first run of the document, in jquery all the values ​​it considers and assigns are 0, lines 46-50. I refresh the page for the second time and lo and behold, everything works as it should, press ctrl + f5 and again the same song, all by zero. Why does this case not have time to process immediately before the first display of the document?

https://jsfiddle.net/Nixtone/g76c1n9d/

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question