Mobile Pull Down to Refresh

Pull-down-to-refresh with adaptive overlay and spinner

Voici les versions de ce script où le code a été modifié. Voir toutes les versions.

  • v1.3 25/03/2026
    • Full rewriting of the script
    • Added cooldown to prevent repeated reloads
    • Domain exclusion support retained
    • Guard against inputs, textareas, and scrollable elements retained
    • Simplified CSS styling without extra effects
    • Overlay and spinner adapt to light/dark color scheme
    • Removed spinner shadow for simpler design
    • Spinner to 10% from the top of the page
  • v1.2 10/08/2025

    New Features

    • Added support for excluding specific domains and subdomains.
    • Supports wildcard TLDs (e.g. example.*)
    • Supports wildcard subdomains (e.g. *.example.com)
    • You can now customize exclusions easily via two arrays: excludedDomains and excludedSubdomains.

    Enhancements

    • Refactored exclusion logic using regular expressions for flexible and accurate matching.
    • Added inline comments and examples to guide users in modifying the script.
    • Updated script description to reflect new capabilities and improve clarity.

    Behavioral Improvements

    • Improved gesture detection to avoid triggering refresh inside scrollable elements like <textarea> and <input>.
    • Ensures refresh only occurs when page is scrolled to the top and gesture exceeds threshold.

    Demonstration

    • By default exclude some domains
  • v1.1 08/08/2025
    • Added support for excluding scrollable elements like <textarea> and <div> with overflow
    • Improved refresh detection for smoother pull-down experience
    • Fixed issue where refresh triggered unintentionally on nested scroll areas
    • Update homepage
  • v1.0 08/08/2025