The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Technical SEO Issues
    4. Auto-loading content via AJAX - best practices

    Auto-loading content via AJAX - best practices

    Technical SEO Issues
    2 2 778
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • paul.younghusband
      paul.younghusband last edited by

      We have an ecommerce website and I'm looking at replacing the pagination on our category pages with functionality that auto-loads the products as the user scrolls. There are a number of big websites that do this - MyFonts and Kickstarter are two that spring to mind.

      Obviously if we are loading the content in via AJAX then search engine spiders aren't going to be able to crawl our categories in the same way they can now. I'm wondering what the best way to get around this is.

      Some ideas that spring to mind are:

      • detect the user agent and if the visitor is a spider, show them the old-style pagination instead of the AJAX version

      • make sure we submit an updated Google sitemap every day (I'm not sure if this a reasonable substitute for Google being able to properly crawl our site)

      Are there any best practices surrounding this approach to pagination? Surely the bigger sites that do this must have had to deal with these issues?

      Any advice would be much appreciated!

      1 Reply Last reply Reply Quote 0
      • stukerr
        stukerr last edited by

        Hi Paul,

        Pagination is always a bit of a sticky area!

        Firstly I certainly wouldn't do any user agent detection, you don't wanna get busted for cloaking when you aren't even up to anything that naughty.

        A nice way i've seen this handled (for wordpress sites although the idea can work on any site) is with the wordpress infinite scroll plugin : http://wordpress.org/extend/plugins/infinite-scroll/

        That basically leaves the site as it is for non-javascript web browsers (so with page 1, 2 3 etc.) but if you have js enabled (i.e. not a spider bot) it will keep scrolling the page. This functionality could I guess be changed to create a pagination effect.

        Tie this is with some rel="prev" and rel="next" markeup (http://googlewebmastercentral.blogspot.co.uk/2011/09/pagination-with-relnext-and-relprev.html) and I think that is certainly one way to fix the problem.

        Another way could be using similar markup for a 'View All' page : http://googlewebmastercentral.blogspot.co.uk/2011/09/view-all-in-search-results.html

        Hope that helps!

        Stuart

        1 Reply Last reply Reply Quote 1
        • 1 / 1
        • First post
          Last post
        • New SEO manager needs help! Currently only about 15% of our live sitemap (~4 million url e-commerce site) is actually indexed in Google. What are best practices sitemaps for big sites with a lot of changing content?
          Nigel_Carr
          Nigel_Carr
          1
          4
          106

        • Where and how much; Schema best practices.
          MichaelGregory
          MichaelGregory
          0
          5
          346

        • What is best practice for fixing urls that have duplicate content, non-static and other issues?
          Stramark
          Stramark
          0
          4
          108

        • Internal links best practices
          jrae
          jrae
          0
          3
          294

        • Remotely Loaded Content
          AlabuSkinCare
          AlabuSkinCare
          0
          3
          206

        • Auto genrated content problem?
          MarieHaynes
          MarieHaynes
          0
          3
          304

        • What is the best practice to handle duplicate content?
          trophycentraltrophiesandawards
          trophycentraltrophiesandawards
          0
          3
          408

        • Late loading content via AJAX - impact to bots
          0
          1
          425

        Get started with Moz Pro!

        Unlock the power of advanced SEO tools and data-driven insights.

        Start my free trial
        Products
        • Moz Pro
        • Moz Local
        • Moz API
        • Moz Data
        • STAT
        • Product Updates
        Moz Solutions
        • SMB Solutions
        • Agency Solutions
        • Enterprise Solutions
        • Digital Marketers
        Free SEO Tools
        • Domain Authority Checker
        • Link Explorer
        • Keyword Explorer
        • Competitive Research
        • Brand Authority Checker
        • Local Citation Checker
        • MozBar Extension
        • MozCast
        Resources
        • Blog
        • SEO Learning Center
        • Help Hub
        • Beginner's Guide to SEO
        • How-to Guides
        • Moz Academy
        • API Docs
        About Moz
        • About
        • Team
        • Careers
        • Contact
        Why Moz
        • Case Studies
        • Testimonials
        Get Involved
        • Become an Affiliate
        • MozCon
        • Webinars
        • Practical Marketer Series
        • MozPod
        Connect with us

        Contact the Help team

        Join our newsletter
        Moz logo
        © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
        • Accessibility
        • Terms of Use
        • Privacy