Enclose your snippet like this:
Enclose your snippet like this:
<div class="lift:LazyLoad"> <div class="lift:MyLongRunningSnippet"></div> </div>
You can add the template attribute to the LazyLoad tag and instead of showing the spinning circle, it will render your template.
<div class="lift:LazyLoad?template='my-nice-wait-message-template'"> <div class="lift:MyLongRunningSnippet"></div> </div>
Enclose your snippet tags on your template with LazyLoad and the snippet will execute on a different thread, which avoids blocking the page render.