Showing posts with label javascript. Show all posts
Showing posts with label javascript. Show all posts

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.