0👍
It would appear that the CSS changes instantly, but the actual image isn’t being loaded until after the AJAX call finishes.
I would check your network tab to understand how the spinner file is being loaded, and see if its being blocked for some reason by the AJAX call. If it isn’t just a static file, something else might be going on.
Source:stackexchange.com