Hibernate and Wakeup Page

Hibernate and Wakeup Page

Is there a way I can capture the entire state of the webpage and its controls, then show a progress bar till some ajax call completes. After completing it, restore the same onto the state it was in before the progress bar started?

A kind of hibernate/wake-up?