We don’t understand what you are trying to do:
– ajax calls are from the browser to the web server, while the loader is shown on the browser. Using ajax calls to show the loader doesn’t make sense.
– what do you mean with “custom loader”?
if you attach a small test case showing what you need to do would help.
Please login first to submit.