Scroll to Top Button

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

Question/comment

DXRK1EAuthor
§
Posted: 2024-07-25

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

  • Button Visibility: The scroll to top button appears only if the page height is greater than 1500 pixels.
  • User Experience: This design choice ensures that the button is available only when it is genuinely helpful, enhancing the overall user experience without adding unnecessary elements.

Feel free to adjust the minimumPageHeightToShowButton value in the script if you want the button to appear for shorter pages as well. Happy browsing!

DXRK1EAuthor
§
Posted: 2024-11-18

Notice:

Known Limitations ⚠️

This notice is outdated, Here is the new one. Please be aware of the following current limitations:

  1. Browser Scroll Override
    Native smooth scroll cannot be overridden in certain browsers due to security restrictions.

  2. Custom Scroll Conflicts
    If your page implements custom scroll behavior, you may experience conflicts with this script.

  3. Device Performance
    Users on low-end devices might experience reduced smoothness or increased latency.

  4. 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

Post reply

Sign in to post a reply.