Fix flaky onLoad()
test for next/image/future
#37993
Merged
onLoad()
test for next/image/future
#37993