4 ms·You don't need to check readyState; onload is only called when the readyState switches to 4.by Jasper_ 5y agoYou don't need to check readyState; onload is only called when the readyState switches to 4.