docshell/test/bug570341_recordevents.html
author Karl Tomlinson <karlt+@karlt.net>
Wed, 31 Oct 2012 15:54:06 +1300
changeset 111995 d7e77004a0d0dd5bd14c23ececf49c60c1231888
parent 71588 c931c8b1d8f623693c4d630777a63447cd7de417
permissions -rw-r--r--
b=797568 don't create a container just to reset it r=roc

<html>
<head>
<script>
    var start = Date.now();
    window._testing_js_start = Date.now();
    window['_testing_js_after_' + document.readyState] = start;
    document.addEventListener('DOMContentLoaded',
      function () {
        window._testing_evt_DOMContentLoaded = Date.now();
      }, true);
    document.addEventListener('readystatechange', function(){
      window['_testing_evt_DOM_' + document.readyState] = Date.now();
    }, true);
    function recordLoad() {
      window._testing_evt_load = Date.now();
    }
</script>
</head>
<body onload="recordLoad()">This document collects time
for events related to the page load progress.</body>
</html>