next/script: make onLoad
concurrent rendering resilient
#40191
Merged
onLoad
concurrent rendering resilient
#40191