Run a function once the entire page has loaded.