React Loading Api, js file to control when the react loading screen should appear.