Add a spec-incompliant load event.

It's good enough for now, since we don't track document resources at all. Should be good enough for #841.