Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I ran into this problem when the Page is initially loaded and no Scroll Event has been fired jet. The autoloader image is shown even no load new content event has been triggered.
The Easiest way to replicate this is to create a view with small content like just headlines and have 4 displayed per page. I attached an Image the Drupal installation is fresh and only required modules are enabled.
Comment | File | Size | Author |
---|---|---|---|
#9 | autoloader_image_only_on_scroll-2741825-9.patch | 758 bytes | AndrewTur |
#7 | After.png | 74.46 KB | krina.addweb |
#2 | Selection_002.png | 34.67 KB | AndrewTur |
#5 | autoloader_image_only_on_scroll-2741825-5.patch | 749 bytes | AndrewTur |
Comments
Comment #2
AndrewTur CreditAttribution: AndrewTur commentedComment #3
AndrewTur CreditAttribution: AndrewTur commentedComment #4
AndrewTur CreditAttribution: AndrewTur commentedI found a way so that the Image only get appended when the click ist triggered by scrolling and there is no image already appended.
I will create a patch soon.
Btw a debounce function would also be nice probably so that the scroll does not trigger hundreds of clicks.
Comment #5
AndrewTur CreditAttribution: AndrewTur commentedComment #6
AndrewTur CreditAttribution: AndrewTur commentedComment #7
krina.addweb CreditAttribution: krina.addweb at AddWeb Solution Pvt. Ltd. commentedPatch works well with given Drupal version. PFA screenshots of the same.
Comment #8
krina.addweb CreditAttribution: krina.addweb at AddWeb Solution Pvt. Ltd. commentedComment #9
AndrewTur CreditAttribution: AndrewTur commentedRerolled pacth against stable 2.1
Comment #10
Honza Pobořil CreditAttribution: Honza Pobořil as a volunteer commentedMore reviews that it does not brake things with current dev, please.