Your best bet is to use a combination of JS waypoint libraries with the WP Rest API.
When element is visible, fetch content and display. Pretty simple.
Instead of the <nextpage>
you could also wrap this in a custom shortcode but this is primarily a JS problem, not really a WP issue.
Related Posts:
- How To Render Shortcode In AJAX Response?
- Get the content of a specific page (by ID)
- How to give paged links custom title?
- How can I keep the content of my pages version controlled?
- What methods to use to create small, editable pieces of text for static pages?
- Editing Complex Pages in Visual Mode
- Prevent WordPress from adding linebreaks to javascript embedded in a page
- Multiple areas of dynamic content in a page
- What are the options for running custom css and javascript files on a page?
- Using JavaScript and JQuery in Page
- Backend option to include a javascript file on specific pages?
- Static files or dynamic WP pages for “static content”?
- The entire content of my WordPress page has disappeared
- WASM page in WordPress website
- What is the proper way to get contents of a page?
- Get the Page Content,without generating HTML
- Two Search pages, One search form
- Can I include Javascript/jQuery in a page?
- Add a predefined page to site
- Blank Pages with # URL & Google
- Displaying Subpages while on Parent page?
- Page displays content from different query?
- Combining ‘depth’ with ‘include’ in wp_list_pages()
- Having wordpress page accesss issue under sub-directory
- How to make my category archive behave like a page
- Removing Parent Page URL While Keeping the Navigation Intact
- The concept of non-blog content
- Adding a Calculator to a WordPress Page
- JQuery Plugins in WordPress
- loading a javascript on a WP PAGE
- If I use a static page-slug.php for a page, is the database still queried?
- How to change the order of the Front Page so it doesn’t appear first
- append one page content into another
- Showing Different Code on Pages With Different Layouts
- Two different pages that share the same content?
- Listing all child-pages of a parent-page on the parent-page and each child-page?
- Sliding pages + wordpress [closed]
- Ordering Pages and Increasing Navigation
- Displaying Current Page Number Conditionally
- Static Website No Titles But Still Nav
- upgrade has caused page content to disappear
- Make Audio Element Persistent Across Pages
- Stop playing music (rev slider) when user opens new tab
- Add the same content to multiple pages
- wordpress page navigation numeric pagination showing same posts on each navigation
- Cannot pull WYSIWYG content
- Editing pages from dashboard
- What’s the best way to manage sections on a page?
- Press This for Page
- Converting HTML to WordPress theme: integrating pages function and using its text editor, conditional enqueuing
- include exception inside theme for empty widget area
- How to get sort content by page id?
- Add text to the bottom of particular pages
- How to make page navigation just below the content?
- displaying child pages in columns when on a parent page
- Retrieve page content and pass to PHP?
- Javascript will not run properly
- Advanced Multi Tier Navigation across columns
- WP-navi plugin and post sorted alphabetically
- How to update page status from publish to draft and draft to publish
- Customizing the URLs of WordPress Login and Sign-up Pages?
- Check IF is a “single product page” and Check the “role” for a Redirect
- How to add a specific widget to only 1 page?
- Get wp_get_attachment_url outside of loop
- How to add or remove metabox each page separately?
- How to display list of child pages of parent page in wordpress?
- Different “Text Widgets” in Sidebar on Many Different Pages?
- Guidelines for adding static pages
- How to echo excerpts with wp_list_pages?
- Remove pages from backend list *and* update counter accordingly
- Making a wordpress page the index on the site?
- Using Pages to handle calls for custom post types
- Guest authors, sort of like Wikipedia, but more theme-able
- Pages views limit [closed]
- Add external css to Contact Page
- how to edit source code of specific page in wordpress?
- Cannot enter “::before” for li tag when editing a WordPress page
- Dynamic href link to Contact Page
- Restrict the list of parent pages to only those which are created by current user
- Insert menu with a custom walker into page / post body using shortcode?
- Is there a way to schedule changes to a page?
- List child pages within page template
- Option for pages order in backend
- Return subpages of an author if the parent page was published by an other author
- Allow a user to edit their own page and profile only
- Next and Previous Page links based on ‘Order’ attribute
- register_rest_field only for specific page
- Update Pages ONLY from Stage to Live (not products)
- Every change made by “Author” role is going to “pending review”
- Create multiple custom HTML pages
- Add homepage to the list of pages in the Footer Widget
- WP pages content is missing in frontend
- How to turn post into pages and via versa?
- Featured Image not displaying in a page
- Get part of a page url
- simple category search form returns full text – but I need excerpts
- Naming custom page templates
- Order pages by date
- In WP, Google map error initMap is not a function [closed]