better cross-browser onload handlers, fixes #24783