How to add a loading page, some like Gmail?

Already discussed here:

5 Likes