Update README.md

Recently I had to show the spinner continuously when doing an xhr and hide it only when the xhr returns. Did not find an example for that in the documentation, so thought of sharing it with others.