javascript - Event when image size is known - JS/jQuery -


i'm looking event when appended js image has known height (not image loaded). event should occurs between $('img').ready() , $('img').load().

you can find example in fiddle - i'm simulating event in setinterval loop (when height known).

example results fiddle (image should not cached browser):
time after append: 6ms, height: unknown. (ready event)
time in loop: 259ms, height: known. (??? event)
time on load event: 3884ms, height: known (load event).

ps. i'm appending form ajax bunch of html content , want animate - height essential it. best solution when: have event on outside container firing when images have known height (it not change size in time).


Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -