In scriptUi I was able to follow these instructions to create a simple progress spinner for long waits: https://sites.google.com/site/scriptsexamples/learn-by-example/uiapp-examples-code-snippets/progress-indicators
I am now using HtmlService to create the Ui and I don't see how I can set up the spinner as I did before.