Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

"Get Next Posts" div not immediately being replaced. #121

Closed
jesselcampbell opened this Issue · 4 comments

2 participants

@jesselcampbell

Hi there,
I'm working with the WordPress plugin here. When you scroll to the bottom of the page you can still see the "Post Navigation" div for a moment, and then it gets replaced with the loading animation/text.

I'm hoping to figure out a way that the "Post Navigation" is never seen by the user, making the experience a little smoother.

Any thoughts or suggestions would be greatly appreciated.

Sandbox site: http://dev.jesselcampbell.com/hoynebrewing/blog

@jesselcampbell

I'm also noticing that the first time the script is called there is no animation, and the second time (at the very bottom) the #infscr-loading div animates up to size.

@jesselcampbell

Removed the WP plugin and am putting the javascript directly into the theme now. Hoping to get the manual-trigger thing going on, which will eliminate the issue altogether.

Is there any documentation for the manual-trigger around?

@67726e

Hey @jesselcampbell - Currently, the plugin does not hide the navSelector until just before the first AJAX call. I cannot really think of a "why" this would be the case, so I totally agree that the plugin should hide it from the get-go.

As for the manual-trigger documentation, I cannot really offer much as this point other than "look at the code" which is totally unideal. That should be coming soon though, since the backlog of issues and PRs is pretty close to cleared.

@67726e

@jesselcampbell The plugin will now hide the navSelector upon initialization.

@67726e 67726e closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.