Simple ways to implement infinite scrolling on your website

Wdd Logo.
September 17, 2014
Simple ways to implement infinite scrolling on your website.
thumbnail

Infinite scrolling embodies one of the ideal attributes of any good design: people can use it without thinking about it. Once you’ve encountered it a couple of times, you forget about it. I’d say that most of us have come to expect certain applications, or perhaps certain kinds of applications, to simply load more content when we hit the bottom of a page. And why not? It’s effective, and often convenient. In some contexts, constantly clicking to see successive pages can quickly become a drag. In these cases, pagination is not a helpful navigation tool, but an interruption to the browsing experience. Infinite scrolling — while it does come with problems of its own — goes a long way towards creating smoother experiences. This is especially true when you have to browse large amounts of information that’s split up into small chunks. Common examples include: Twitter, news sites, tumblogs, image galleries, and so on. Of course, it’s not for everyone, or every project. For those of you who have decided to add some infinite love to your sites, there are several effective ways to easily apply it to your site:

Infinite scrolling for static sites

In most cases, you’ll probably be adding this kind of behavior to sites/​apps that have dynamic content stored in a database. I’ve decided to include a link that revolves around static sites for two reasons: 

  1. You may need to know how to do this specifically. You never know.
  2. Once you know how to add infinite scrolling to a static site, you’ll probably be able to adapt the same techniques to any CMS or CMS theme that you happen to be familiar with.
This tutorial

from Hongkiat​.com features two different jQuery plugins for your consideration, including Infinite Scroll by Paul Irish.

Infinite scrolling for WordPress sites

I’m not sure that there’s any sort of feature or functionality under the sun that hasn’t been made available for WordPress in the form of a plugin. Infinite scrolling is, of course, no exception. First, we once again have Infinite Scroll. Yup. This jQuery plugin comes with an official Wordpress implementation also made by Paul Irish. The link is right there on the plugin’s main site, prominent and visible, right at the top. Also included on the page is a tutorial to help you configure the plugin to work with your specific WordPress theme, so be sure to check out the documentation. Next, we have proof that Automattic, the company behind WordPress, loves us and wants us to be happy. They created a Jetpack module that will also add infinite scrolling to your theme. Again, you may need to customize the plugin to work with your specific theme. But what if you want to dive deep into the code, and learn how to do it from scratch? WPTuts+ has you covered with this rather in-depth tutorial. Recommended for people with an intermediate understanding of front-end code, the tutorial comes with everything you need to hardcode infinite scrolling into your theme. Some would even argue that this is the right way” to do it.

Infinite scrolling for Tumblr themes

Lots of designers, and some developers, make use of tumblr for sharing their thoughts and/​or work. Are you one of them? Do you want your Tumblr theme to scroll infinitely, just like your dashboard? Look no further than Cody Sherman’s tutorial. Since it was written for the average, non-coding Tumblr user, this tutorial is dead simple. This comes at a cost, though, as it may not work with every Tumblr theme.

Mixing infinite scrolling with other plugins

jQuery Masonry is the classic plugin for creating masonry-style layouts on the web. (Personally, I think the name gives it away.) Since masonry layouts are all about displaying the small bits of information that are often well-served by infinite scrolling, it’s no surprise that many websites combine the two behaviors. (See: Pinterest) For static sites, you should check out the official documentation here. Isotope is similar in function to Masonry, in that it was created to help people implement masonry layouts. I include it here because, in my opinion, it’s actually better. This is mostly because, through trial and error, I was able to make a truly responsive masonry layout with this jQuery plugin. I’ve had less luck with others. Your experiences may vary. Check out the documentation here. Featured image/​thumbnail, infinite scroll image via Shutterstock.

WDD Staff

WDD staff are proud to be able to bring you this daily blog about web design and development. If there’s something you think we should be talking about let us know @DesignerDepot.

Read Next

Apple Opts for AR over VR at WWDC

An Apple VR headset has been one of the most widely-rumored devices of the last few years, and it was finally settled a…

Exciting New Tools for Designers, June 2023

We’re halfway through 2023 already, and the number of incredible apps, tools, and resources for designers is mounting.

3 Essential Design Trends, June 2023

This month we are focusing on three trends within a bigger website design trend – different navigation menu styles and …

15 Best New Fonts, May 2023

The choices you make when selecting a typeface have more impact on your design than almost any other decision, so it’s …

10+ Best Tools & Resources for Web Designers and Agencies (2023 updated)

Having the ability to envision a tastefully designed website (i.e., the role creativity plays) is important. But being …

20 Best New Websites, May 2023

This month, there are tons of great new agency websites to get excited about. 3D animated prisms are a popular theme, a…

How to Find the Right White Label Website Builder for Your Agency

Web design agencies face a lot of obstacles in closing the deal with new clients. One of the most common ones is the ar…

Exciting New Tools For Designers, May 2023

There are hundreds of new tools for designers and developers released each month. We sift through them all to bring you…

3 Essential Design Trends, May 2023

All three of the website design trends here mimic something bigger going on in the tech space, from a desire to have mo…

10 Best AI Tools for Web Designers (2023)

It’s time to stop worrying if AI is going to take your job and instead start using AI to expand the services you can of…

10 Best Marketing Agency Websites (Examples, Inspo, and Templates!)

Marketers are skilled in developing strategies, producing visual assets, writing text with high impact, and optimizing …

15 Best New Fonts, April 2023

Fonts are a designer’s best friend. They add personality to our designs and enable fine typography to elevate the quali…