fix loadEventEnd is zero when exists iframe
format code