Add event around ajax call to allow "loading" management by third party