Evaelis
Active member
Hello,
I recently decided to move my JS from JQuery Ajax function to XenForo's one. The result does exactly what I want : it refresh the alerts and private messages count each time a request is made.
Except that each time a request is made, there is the loading gif on the edge of my board and the alert count fade in and out. As I can request up to 2 requests per second, you may have understood that this makes a constant blink on the alerts count and a permanent loading gif.
I read an old thread (https://xenforo.com/community/threads/disable-the-ajax-loading-gif-for-most-default-actions.62090/) about why we are still using the gif, still I would like to be able to disable it on my own requests only (as I do know they don't take any time to process and I assume that the server is not overloaded).
Is there any way I can do this?
Thanks!
I recently decided to move my JS from JQuery Ajax function to XenForo's one. The result does exactly what I want : it refresh the alerts and private messages count each time a request is made.
Except that each time a request is made, there is the loading gif on the edge of my board and the alert count fade in and out. As I can request up to 2 requests per second, you may have understood that this makes a constant blink on the alerts count and a permanent loading gif.
I read an old thread (https://xenforo.com/community/threads/disable-the-ajax-loading-gif-for-most-default-actions.62090/) about why we are still using the gif, still I would like to be able to disable it on my own requests only (as I do know they don't take any time to process and I assume that the server is not overloaded).
Is there any way I can do this?
Thanks!