Only mock the load event on the window object if the load event has already been fired prior to script execution concluding.
Only mock the load event on the window object if the load event has
already been fired prior to script execution concluding.

mrpau/kolibri,mrpau/kolibri,indirectlylit/kolibri,indirectlylit/kolibri,learningequality/kolibri,mrpau/kolibri,indirectlylit/kolibri,learningequality/kolibri,mrpau/kolibri,indirectlylit/kolibri,learningequality/kolibri,learningequality/kolibri