we can't reliably use messagecat with scripts that run before the onload event