();
        }

        var timer = setTimeout(timeout, 4000);

        function log(text)
        {
            var textNode = document.createTextNode(text);
            document.getElementById("testresult").appendChild(textNode);
        }
        </script>

        <span id="testresult"></span>

        <script src="log.py?sec=3&id=1" async></script>
        <script src="log.py?sec=1&id=2" async></script>
    </body>
</html>
