Apparently the loading div was not loaded before the call to show it
executed