Skip to content
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

Refactor the Javascript #58

Open
seb86 opened this issue Jul 30, 2016 · 2 comments
Open

Refactor the Javascript #58

seb86 opened this issue Jul 30, 2016 · 2 comments

Comments

@seb86
Copy link
Collaborator

seb86 commented Jul 30, 2016

To better support the plugin performance and be more extensible for add-ons or for custom functions to interact with from other developers. This is a major issue that needs to be addressed once all minor issues have been dealt with.

@seb86 seb86 added this to the v2.0.0 milestone Jul 30, 2016
@seb86 seb86 self-assigned this Jul 30, 2016
This was referenced Jul 30, 2016
@seb86 seb86 mentioned this issue Oct 9, 2016
@seb86
Copy link
Collaborator Author

seb86 commented Feb 10, 2017

Version 1.4.8 started the process of re-factoring the JavaScript.

  • JavaScript triggers were added for developers.
  • Google Analytics now tracks posts using one of those JavaScript triggers.
  • The Post ID of each post loaded is now identified.
  • Comments are removed on load if requested.

Further improvements are still needed such as the scroll enter and exit of each post. At the moment the post divider is used to make the switch between posts and when to load new posts. The post divider contains the post information such as the post ID, post title and post url.

Would be better to apply the information to the article container instead and use the article element to identify when a post is entered and exited.

This would prevent posts from loading too many in the background before the reader has got to the next post.

@seb86 seb86 modified the milestones: 2.0.0, v2.0.X Mar 13, 2017
@seb86
Copy link
Collaborator Author

seb86 commented Aug 17, 2018

The JavaScript is currently been re-written from scratch and is being tested with Auto Load Next Post Pro for the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant