Live data from Hacker News

Pull to refresh. For the web

usehook.com

1–10 of 50 posts

Re: Pull to refresh. For the web

#5
This is nice for those who like the pull-to-refresh trope (I'm not among them, but that's not relevant here).

Some suggestions:

1) Wouldn't it be better to have some initialization function like $('body').hook('Reloading...') to create the necessary markup instead of requiring the developer to put it on each page?

2) I'm not sure how hard this would be, but I think it would be better for the pull to refresh action to be longer and more gradual. I hit a refresh just by scrolling up a few pixels past the top when I didn't want to trigger it.

3) I'm not sure if you already support this, but it would be nice if the reload action could support a user-specified callback function instead of always reloading the whole page. That way people could use it to make AJAX calls and reload specific s instead of reloading all of the page nav and other static pieces. That's more like the behavior we see in mobile.

Re: Pull to refresh. For the web

#6
post #3

"Pull to Refresh" is a poor description for the end user. I literally clicked and pulled down as I would on the iPhone simulator to use pull to refresh.

Ha ha spot on. The was the first thing I did, clicked at the top of the page and tried to "pull" down the page to refresh. And nothing happened.....

Re: Pull to refresh. For the web

#7
Awesome! I was looking for something like this that works on mobile.

IMO the next version needs to be able to pull slightly without refreshing. This way the user can know it's an option without necessarily firing it.

Post reply on HN