script detects whether loading failed