Adds a scroll to top button at the bottom right of the page when scrolled to the bottom, and hides it at the top.
< Feedback on Scroll to Top Button
This notice is outdated, Here is the new one. Please be aware of the following current limitations:
Browser Scroll Override
Native smooth scroll cannot be overridden in certain browsers due to security restrictions.
Custom Scroll Conflicts
If your page implements custom scroll behavior, you may experience conflicts with this script.
Device Performance
Users on low-end devices might experience reduced smoothness or increased latency.
Background Tab Behavior
Browser policies may throttle performance when the tab is not active.
📝 If you encounter any issues or have suggestions for improvement, please make an feedback here.
Replies will be late, as i only now update and upload scripts on my website
Last updated: 2024-11-18
Notice: Scroll to Top Button Visibility
Ever wondered why the scroll to top button won't show even when you're at the end of the page?
This might be because the page's height is too short. The scroll to top button is designed to appear only when the page height is sufficiently long. Specifically, it will only show when the page height exceeds 1500 pixels.
Why is this?
Including a scroll to top button on a short page is unnecessary, as the user can easily scroll back to the top without it. By limiting the button's visibility to longer pages, we keep the user interface clean and avoid clutter.
Key Points
Feel free to adjust the
minimumPageHeightToShowButton
value in the script if you want the button to appear for shorter pages as well. Happy browsing!