async or sync ? when we set the src property of the Image object?

Posted by lovespring on Stack Overflow See other posts from Stack Overflow or by lovespring
Published on 2010-04-22T13:42:00Z Indexed on 2010/04/22 13:43 UTC
Read the original article Hit count: 161

Filed under:

var img=new Image();
img.src='xxxxx';
//will the browser wait for the image then exec the next code line?

© Stack Overflow or respective owner

Related posts about JavaScript