How to know when images in an html fragment have been loaded after jquery's .load() ?
Posted
by wkf
on Stack Overflow
See other posts from Stack Overflow
or by wkf
Published on 2010-03-24T04:41:05Z
Indexed on
2010/03/24
4:43 UTC
Read the original article
Hit count: 241
If I load an html fragment that contains images with jquery's .load()
, the images aren't yet loaded when my callback is called. Since I need to do some calculations based on the dimensions of the images, I need to know when they've actually been loaded. Is there a nice way to do this?
© Stack Overflow or respective owner