Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Consider adding 'views_infinite_scroll’ module #92

Open
isalmanhaider opened this issue May 23, 2024 · 5 comments
Open

Consider adding 'views_infinite_scroll’ module #92

isalmanhaider opened this issue May 23, 2024 · 5 comments

Comments

@isalmanhaider
Copy link
Contributor

Integrating the Views Infinite Scroll module will significantly improve user experience on views that load a lot of content, enhancing the overall usability of Drupal. This feature is beneficial for both beginner and professional developers exploring Drupal and Views in Drupal, offering a modern and user-friendly way to navigate through content-dense pages. Since in addition to pagination, it allows content to load on the fly as you scroll via AJAX.

https://www.drupal.org/project/views_infinite_scroll

@isalmanhaider isalmanhaider changed the title Consider adding 'views_infinite_scroll’ Consider adding 'views_infinite_scroll’ module May 23, 2024
@phenaproxima
Copy link
Owner

No specific objection to adding Views Infinite Scroll, but let's add it when we have an actual use case for it -- that is, when we have a specific view that would benefit from it. I don't think all views are the best fit for infinite scrolling (administrative views are probably just fine with regular pagination), but when/if we have one that whose usability would be enhanced by an infinite scroll, I'm all for it.

Leaving this open just in case anyone has thoughts about any views already in Starshot which might benefit.

@roromedia
Copy link

Good idea! Here some thoughts and a good article about Infinite Scroll from a UI/UX perspective: https://www.nngroup.com/articles/infinite-scrolling-tips/
Accessibility needs to be considered and also the footer which is out of reach as long as there are always new items coming in - if there are important links like Cookie Settings which should be easily accessible anytime (this is a requirement by GDPR) this needs to be considered as well. Sharing of view results might also be impacted as well as revisiting results could be harder than necessary - could lead also to SEO-issues, not sure how the module handles that (I remember in Drupal 7 there the pager links were still there but hidden, this was good for SEO). In the end it is the responsibility of the maintainer of the site to incorporate Infinite Scroll in an accessible and thoughtful way.

@phenaproxima
Copy link
Owner

phenaproxima commented Jul 24, 2024

I think infinite scrolling might make sense for something like the media library, where pagination is probably more annoying than useful. What do you think? Maybe we could have a recipe here which sets up infinite scrolling in the media_library view.

I'd like to hear @pameeela's opinion on that before implementing it, though. It's only worth doing if it will actually make the media library more usable without compromising its accessibility.

@pameeela
Copy link
Collaborator

I think we should probably postpone discussions around adding new contrib. There will be a process for reviewing modules to be included that is yet to be defined.

I think this module is definitely in consideration, but part of that will be weighing up the benefit vs cost of having another module. If we are only adding it for the media library, that seems like somewhat of a weak case but I could see it being useful for other views as well.

@gitressa
Copy link
Contributor

I agree with postponing adding further contrib modules for now @pameeela.

As I commented elsewhere, best practice in Drupal is to not install a lot of modules, since it adds to future maintenance. Like Ted Bowman once said, "there's a module for that, don't use it". Starshot should be a robust starting point, showcasing and exemplifying best practices, delivering a Drupal web site ready for production "Out of The Box", like WordPress and SquareSpace do. A goal of covering 80% of popular and often used web site features could be used as a metric?

Here are the modules already added, and some of the modules under consideration, or rejected:

Included

Under consideration

Rejected

Two other module discussion issues:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants