[webkit-dev] how to create a test that can perform actions while resources are still loading?

Darin Adler darin at apple.com
Wed Oct 6 16:42:03 PDT 2010


On Oct 6, 2010, at 4:36 PM, Jenn Braithwaite (胡慧鋒) wrote:

> I've also tried making this an http test using a slow loading iframe, but the window onload handler for the page does not run until after its iframe has finished loading.

This seems OK. You can put your test code somewhere other than the load handler. For example, an inline script:

    <script>
    test();
    </script>

That will run right away and won’t wait for the window load event.

    -- Darin



More information about the webkit-dev mailing list