phenaproxima / starshot-prototype

Prototype of a new kind of Drupal, based on recipes and loaded up with contrib's best modules and themes. Not a fork or a distribution.
https://drupal.org/starshot
104 stars 36 forks source link

Consider adding 'views_infinite_scroll’ module #92

Open isalmanhaider opened 1 month ago

isalmanhaider commented 1 month ago

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

phenaproxima commented 1 month ago

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 commented 1 month ago

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.