4 ms·
I don’t know what you mean by “forward” because there is no difference between these two: img.onload = function() {…} img.src = “some url” img.load(“som
by pavlov 2y ago
I don’t know what you mean by “forward” because there is no difference between these two:
img.onload = function() {…}
img.src = “some url”
img.load(“some url”, function() {…})
The early JavaScript APIs use the first style, but the result is the same.