canha42/pinterest-pin-it — pull request #19 by jjeaton (2012-10-16 00:45:08+00:00)
Title: Fixed issue where jQuery ran before images loaded

Images aren't loaded when using a `(window).ready` event, switching to
`.load()` allows all images to load prior to running the button add code.

All the 'Pin It' buttons were showing up about in the middle of my images. The css `left:` value implied that the width of my images were all zero. I realized this was because the images hadn't loaded when the jQuery was running. Switching to the `jQuery(window).load` event solves the problem.

Also, you don't need to pass the `jQuery` object to the `load` event. You would only pass the `$` if you wanted to use it within the function. See [WordPress jQuery noConflict](http://codex.wordpress.org/Function_Reference/wp_enqueue_script#jQuery_noConflict_wrappers).