let handler = function(event) {
      let readyState = document.readyState;
      let readyStates = [