fixed loadeddata event chrome bug