Fire resize events right after object load if necessary

Fixes a race condition where elements that were resized between the time the resize event was added and the time the resize listening object's onload event was called were not getting a resize event fired.
Merge remote-tracking branch 'origin/master' into craft2.3