Once the save is complete, return control to the browser immediately. Start the regeneration, and then update it when complete, e.g. using long poll.
Once the save is complete, return control to the browser immediately. Start the regeneration, and then update it when complete, e.g. using long poll.