When the window is zoomed out and the component is initialized the component will stuck on loading wont call the next function 