<script src="include.js"></script>
<script>
    asyncTest(done => {
        let eventCount = 0;

        let goodLink = document.createElement("link");
        goodLink.setAttribute("rel", "preload");
        goodLink.setAttribute("href", "valid.css");
        goodLink.setAttribute("as", "style");
        goodLink.addEventListener("load", function () {
            println("Got load event");

            if (++eventCount == 2) {
                done();
            }
        });
        document.head.appendCh