That's what I did on my blog [1]. I tried different methods and realized that it should be a simple link that jumps you straight to the top and nothing fancy. The only JavaScript used it to determine when to display the link.
[1] https://www.primative.net/blog/how-to-get-rid-of-the-flash-o...