Removing asynchronous ajax call