Checks that deferred scripts fire onbeforeload immediately and that it is cancellable.