1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Hook.js - Curious to see if this works with XF

Discussion in 'Resource and Add-on Discussions' started by ManOnDaMoon, Feb 27, 2013.

  1. ManOnDaMoon

    ManOnDaMoon Well-Known Member


    "Pull to refresh. For the web."

    It makes use of "latest" jQuery, so I'm not sure it can be easily integrated in XF. I'll give it a try.
  2. MOZ

    MOZ Well-Known Member

    It will work on some pages, others like what's new require a little something extra like reload to different page and you can have the What's new URL in it
  3. ManOnDaMoon

    ManOnDaMoon Well-Known Member

    Agreed. But for now, it seems Hook.js does not like XF's jquery version :
    TypeError: a.replace is not a function
    Line 16
  4. Chris D

    Chris D XenForo Developer Staff Member

    Actually could be quite annoying on certain pages.

    I often scroll back up to the top of a thread while writing a post. If I accidentally went too far and refreshed the page instead. That would be quite frustrating.
  5. ManOnDaMoon

    ManOnDaMoon Well-Known Member

    You're right. It should be used along with something like Autosave : http://xenforo.com/community/resources/message-auto-save-drafts.244/
  6. TrevC

    TrevC Well-Known Member

    Wow, this would annoy the hell out of people. Pointless.
    MattW and Luke F like this.
  7. ManOnDaMoon

    ManOnDaMoon Well-Known Member

    That's your opinion.
  8. Luke F

    Luke F Well-Known Member

    This is a pretty dumb concept - not only is it completely unintuitive (even on touch devices if I'm honest), it also gets in the way of normal use (can't scroll quickly to the stop of the page without triggering a refresh) and doesn't even do anything special besides a normal refresh (which can't even reliably keep the same scroll position).
    TrevC likes this.
  9. TrevC

    TrevC Well-Known Member

    Yep, and I wouldn't normally comment on these things. This "feature" seemed pointless enough to warrant a negative comment. I suppose I'm hoping site owners will consider what's best for their users before mindlessly enabling something as gimmicky and ****ty as Hook JS.

    It's really poorly thought out. From a user experience type standpoint, it doesn't even behave like your typical "pull to refresh". It triggers a full page reload when you simply scroll to the top (there's no layer of resistance or visual clues, it just DOES IT). Even if the physics were improved, it still does nothing more than completely reload the page. If you're aiming to annoy visitors in a unique fashion, this is a spectacular way to do it.

    Give it a while and we'll start seeing Hook JS on some of those Wordpress blogs that are running 50 plugins and take 20 seconds to load ;)
    Luke F likes this.
  10. ManOnDaMoon

    ManOnDaMoon Well-Known Member

    This "feature" seemed pointless enough to you, but obviously not to me. I've always preferred detailed information instead of an elite's knowledge withholding.

    Anyway, thank you for finally detailing your point a bit. Thanks also to Luke for his explanation.

Share This Page