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.