Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
07-16-2010, 01:22 AM #1
- Join Date
- Jan 2006
- Halle (Saale), Germany
- Thanked 974 Times in 947 Posts
Safari/Webkit calculating image dimensions too early
Iíve ran into this issue several times lately: I needed to calculate the dimensions of images and Webkit browsers like Safari and Chrome calculate the dimensions when the images arenít yet loaded. Iíve tried to use the load() event but it only works if the images arenít cached yet and still, itís not 100% reliable. There is also some plugin thatís recommended in the jQuery documentation of load() but somehow it just returns a JS error (ďtoo much recursionĒ). Whatís the best way to prevent Webkit from calculating dimensions prematurely? I havenít found anything successful on the internet yet.