Such a simple stack to deploy
Just drop the stack into the bottom of your page and you are good to go.
The stack decides for it's self "Am I needed..?"
The stack will only be called to action on pages that are long enough to justify a scroll to top button.
The will obviously vary with screen size. So the stack will look at this each time it is loaded into the page.