Loading indicator

I am writing a custom view.py which takes a long period of time to execute. I would like to add a loading indicator. There is a package called netsight.async. However, it seems to me it does not work for Plone 5. Is there any similar package working for plone 5.2? If not, how can I add it by myself?

Thanks in advance,