-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/load-more - Toggle lazy loading feature #442
base: master
Are you sure you want to change the base?
Conversation
bdf09ec
to
1bc7e9f
Compare
Rebased off 1.8.2 master. |
Still TODO:
|
@cain what is the " jump-to-key-event" this part refer to as missing? |
Based on Automattic#442 * add preventDefault to prevent admin form submission * add a style to center the button
@adamsilverstein Eg. if the event is on page 3, load the first 2 pages PLUS the 3rd page, then scroll to event. Let me know if this doesnt make sense. We pushed a feature to our local repo, but i havent pushed the code to github yet. Kind of tricky since we created a new endpoint to help deal with this. Ill push the code soon. |
@adamsilverstein |
So would this mean 'load more' would load all remaining entries vs. another page of entries?
Sure, I'm not quite finished, I'll pull the changes back in here when I am. I'm going to add logic to change the load more button into a spinner once you click it so you can tell something is happening (and to prevent clicking it twice). In addition, we are going to enable (via a filter) scroll detection that eliminates the Load More button entirely and instead lazy loads entries as your scroll approaches the bottom of the stream |
Sorry I'm confused by the question. Eg: if my URL is
Sounds good! We aren't interested in the infinite scroll at the moment, but would be a good feature to have! |
Ah, ok - got it, i was confused. |
Any news on this? |
@fabianpimminger we implemented this feature for fivethirtyeaight's implementation, however I'm not sure these changes were ever merged upstream. Take a look at this PR for some details and in case you want to add the functionality to your site: paulschreiber#28 |
Thx @adamsilverstein .. any chance this gets merged? |
I'm no longer supporting this, just need to get it tested and merged by an admin. |
Ability to toggle a "load more" type pagination. Default is set to "page" type pagination, but can be changed in the config settings
paginationType