Split DOMContentLoaded and onreadystatechange.