jQuery(window).load(...) registered "after" window load event?

jQuery(window).load(...) registered "after" window load event?

Hello,

I am new to the group and just had a simple question about the jQuery(window).load(function() {});.

I have an external JS file that gets inserted dynamically on the page after the window load event occurs. Inside this JS file I have a statement as follows:

jQuery(window).load(function() {
     alert("Something");
});

The question I have is, would the alert() statement above get executed because by the time my above function gets registered to the window load event, the event has already fired. I would expect the alert above to fire immediately since the event it is supposed to wait on, is already complete.

I appreciate any ideas.

Thanks!