Friday, October 26, 2012

img oddities

Something to note today: Make sure to define img.onload before img.src in javascript. Otherwise certain browsers may behave erratically. Apparently there isn't an official spec on this, but it's mentioned over at StackOverflow.

No comments:

Post a Comment