Jquery Promise All. all ()というメソッドを用いることでこれを解決す