Skip to content

Fix for scrolling fast to the bottom of the page #137

@Sempervivum

Description

@Sempervivum

When using this script I noticed one disadvantage: When scrolling fast to the bottom of the page one scrolls over the images on the way down and initiates loading. Therefore loading of the final images being in the viewport after scrolling lasts long.
There is an easy fix for this:
//$w.on("scroll.unveil resize.unveil lookup.unveil", unveil); var scrollHandle = null; $w.on("scroll.unveil resize.unveil lookup.unveil", function () { if (scrollHandle) clearTimeout(scrollHandle); scrollHandle = setTimeout(unveil, 200); });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions