Stop loader on window load event