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

unnecessary/annoying page refresh #42

Closed
cameron opened this issue Jan 3, 2014 · 7 comments
Closed

unnecessary/annoying page refresh #42

cameron opened this issue Jan 3, 2014 · 7 comments
Labels

Comments

@cameron
Copy link

cameron commented Jan 3, 2014

When navigating to a page you have already visited, either via the browser back/forward buttons or link, the content of the page displays for a moment before disappearing and fading in via the standard loading animation.

Suggested fix: either disable the loading animation for cached pages, OR prevent the cached page from showing before the animation finishes.

@rosariomgomez
Copy link

I'm not sure if my problem is related with this but it looks like to me.
If you enter to my site: http://www.rosariomgomez.me/ you can see there are currently 3 posts. By clicking on the "Home" link (left bar) the 1st post disappear and you need to reload the page in order to get it back.

@ianklatzco
Copy link

I've got a similar issue where visitors have to refresh the page, else it
tries to load for two minutes.

-Ian Klatzco.
klatz.co
(refresh the page if it won't load)

On Wed, Mar 5, 2014 at 9:13 AM, rosariomgomez [email protected]:

I'm not sure if my problem is related with this but it looks like to me.
If you enter to my site: http://www.rosariomgomez.me/ you can see there
are currently 3 posts. By clicking on the "Home" link (left bar) the 1st
post disappear and you need to reload the page in order to get it back.

Reply to this email directly or view it on GitHubhttps://github.com//issues/42#issuecomment-36751740
.

@martgnz
Copy link

martgnz commented Mar 20, 2014

Any news on this?

@oswaldoacauan
Copy link
Owner

I will try to look at this today

@yuters
Copy link

yuters commented Mar 23, 2014

Ajax loading seems to create more issues than it solves.

For a temporary solution you can remove pjax, comment out https://github.com/oswaldoacauan/ghostium/blob/master/src/assets/js/scripts.js#L42-L87, it also resolves issue #35.

@szelpe
Copy link

szelpe commented Apr 15, 2014

@oswaldoacauan, seems like you have serious synchronisation problems, i.e. the pjax request is already finished and the new content is loaded into the container when the NProgress is still doing it's fade out effect.
What you could do is doing the fade out effect manually (e.g. with jQuery) and after it's finished start the pjax call manually. After the pjax call is finishes you can do a fade in effect, manually again.
Seems like NProgress doesn't support this advanced scenario, alternatively you could try another similar library.

@szelpe
Copy link

szelpe commented Apr 15, 2014

Here is a fixed version: szelpe@4ae0d00

Note: this is not an ideal solution, since the ajax request only starts after the animation, could improve by starting them simultaneously and create a synchronization point.

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

No branches or pull requests

7 participants