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. Intermediate & Advanced SEO
    4. How to solve JavaScript paginated content for SEO

    How to solve JavaScript paginated content for SEO

    Intermediate & Advanced SEO
    3 2 53
    • 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.
    • MJTrevens
      MJTrevens last edited by

      In our blog listings page, we limit the number of blogs that can be seen on the page to 10. However, all of the blogs are loaded in the html of the page and page links are added to the bottom.

      Example page: https://tulanehealthcare.com/about/newsroom/

      When a user clicks the next page, it simply filters the content on the same page for the next group of postings and displays these to the user. Nothing in the html or URL change.  This is all done via JavaScript.

      So the question is, does Google consider this hidden content because all listings are in the html but the listings on page are limited to only a handful of them?

      Or is Googlebot smart enough to know that the content is being filtered by JavaScript pagination?

      If this is indeed a problem we have 2 possible solutions:

      • not building the HTML for the next pages until you click on the 'next' page.
      • adding parameters to the URL to show the content has changed.

      Any other solutions that would be better for SEO?

      1 Reply Last reply Reply Quote 1
      • effectdigital
        effectdigital last edited by

        It will be strongly de-valued and the links may or may not even be noticed / seen at all. Googlebot can leverage headless browsers (something similar to Selenium or Windmill in Python, with targeting handled via XPath maybe). The only thing is, this takes ages longer than basic source-code scraping. To scrape the modified source with a headless browser can take, 5-10 seconds instead of less than 1 second

        Since Google's mission is the 'index the web', you have to fathom that they wouldn't take this colossal efficiency hit all the time, or for everyone. Certainly looking at the results of many sites and their different builds, that's exactly what I see. Just because 'Google can' that doesn't mean that 'Google will' on all crawls and websites

        Some very large websites rely on such technologies, but usually they're household name sites which offer a unique value-proposition of cultural trust signals for the specified audience. If you're not a titan of industry, then you're likely not one of the favoured few who gets such special treatment from Googlebot so regularly

        This is an interesting post to read:

        https://medium.com/@baphemot/whats-server-side-rendering-and-do-i-need-it-cb42dc059b38

        ... you may also have the option of building the HTML on the server side and then serving it in different URLs to the user. To me it sounds like a case where SSR might be the best option. That way you can still use your existing technologies (which are FAST) to render the modified HTML, but render it on the server side and then serve the static HTML (after the render) to users using SSR. That's personally what I would start looking at as it will keep the best of both worlds

        Implementation could be costly though!

        I don't think you'd get accused of cloaking but that doesn't change the fact, part of your site's architecture will 90% become invisible to Google 90% of the time which is not really very good for SEO (at all)

        Another option, instead of building all the post listings on page-load (which will cause stutter between pages), just load all of them at once in the source code and use the JavaScript to handle the visual navigation (from page to page) only. Let JS handle the visual effect, but keep all listings in the HTML right from the get-go. That can work fine too, but maybe SSR would be better for you (I don't know)

        ...

        after looking at your source code, it seems you have already done this. The only real problem would be if the links themselves were 'created' through the JS, which they are not (they all start visible in your non-modified source code). Yes, things which begin hidden, are slightly de-valued (but not completely). This might impact you slightly, but to be honest I don't think separating them out and making the pages load entirely separately would be much better. It would help architectural internal-indexation slightly, but likely would hamper content-loading speeds significantly

        Maybe think about the SSR option. You might get the best of both worlds and you might be able to keep the JS intact whilst also allowing deep-linking of paginated content (which currently is impossible, can't link to page 2 of results)

        Let me know if you have previously thought about SSR

        1 Reply Last reply Reply Quote 1
        • MJTrevens
          MJTrevens last edited by

          thanks for the thorough response. I was leaning toward leaving it alone for the time being and this helps affirm my decision. I don't think we are going to see much benefit from tampering with it to make it more Googlebot-friendly

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • Javascript and SEO
            nhhernandez
            nhhernandez
            1
            9
            312

          • How to fix Duplicate Content Warnings on Pagination? Indexed Pagination?
            Everett
            Everett
            0
            3
            375

          • Unique content for international SEO?
            Nigel_Carr
            Nigel_Carr
            0
            3
            136

          • Pagination & SEO
            MeganSingley
            MeganSingley
            0
            3
            1.4k

          • Pagination, Javascript & SEO
            BeckyKey
            BeckyKey
            0
            5
            355

          • SEO: How to change page content + shift its original content to other page at the same time?
            LizMicik
            LizMicik
            0
            3
            87

          • Ecommerce, SEO & Pagination
            BeckyKey
            BeckyKey
            0
            6
            208

          • Pagination & SEO
            Dr-Pete
            Dr-Pete
            0
            14
            2.7k

          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