The jQuery .load()
function is triggered when the element it is called on and all of its children elements are completely loaded.
Here, it is called on $(window), meaning it will wait untill every element of the current page has been loaded to trigger the handler, which here hides the animation.
In short, this code waits for the whole window to be fully loaded then hides the animation.