farinspace/jquery.imgpreload — Issue #2: Preloaded Image Width and Size
Author: pushpinderbagga
Created: 2012-01-01 09:05:13+00:00
State: open

Hey there, nice work with this plugin - thanks!

I just wanted to check if there was any case we can also extract the dimensions of the image in the data of that element.

I tried adding

$.data(this, 'dimensions', { 'width': img.width, 'height': img.height });

just after the src to that image object is allocated but its giving me an error or indefinite recursion... any clues to how we can go over this without removing the above code?

thanks a lot!