texting window onload vs doc ready