Now no need to code for Ajax loaders, use the ready made preloaders.
Preloaders.net has given us different types of preloaders which allows you to select size, speed,color, and that too from different varieties of 3D spinners.
You just have to select from the categories which type of loader you want, then set their background and foreground color, set the size and the speed and just hit the Generate preloader button. You will be able to see a loader which you can download and then just paste it in your code.
Make your users wait in style! 🙂