• Resolved tylorreimer

    (@tylorreimer)


    I’m trying to implement Infinite Scroll on a site that’s very much still a WIP. I’ve been trying to debug it for quite a while and haven’t made any progress. Infinite Scroll works great when I test it with a theme like Twenty Seventeen but the javascript throws errors when I enable it on my own theme.

    I’ve added the settings to my functions for enabled theme support. And am trying to use the “Load more posts in page with a button” option but it throws the following error:

    infinity.min.js?ver=10.3-is5.0.1:formatted:51 Uncaught TypeError: Cannot read properties of null (reading 'appendChild')
        at new Scroller (infinity.min.js?ver=10.3-is5.0.1:formatted:51)
        at HTMLDocument.jetpackInfinityModule (infinity.min.js?ver=10.3-is5.0.1:formatted:385)

    If anyone can point me in the right direction I’d be greatful!

    • This topic was modified 4 years, 6 months ago by tylorreimer.

    The page I need help with: [log in to see the link]

The topic ‘Infinite Scroll won’t initialize properly’ is closed to new replies.