Delay the result of the readyState check to give scripts the opportunity to delay ready, as described by @jrburke in 747ba7de.
Attach a file by drag & drop or click to upload