Gentlemen, in this example, as you can see, I get what I want, but on my computer, by no means ... Picture with the result. Any idea why this is? By the way, an example on a computer, plain HTML on the desktop ...
And in the chome and FF the same result
var img1 = document.getElementById('img1'); console.log(img1.naturalWidth) <img width="100" height="100" id="img1" class="img" src="https://www.1zoom.ru/big2/34/322924-alexfas01.jpg" alt="A"> 
setTimeouthelped - AirsetTimeout. it will be different at different internet speeds. - Raz GalstyansetTimeoutused to identify the problem, not to solve it - Air