タグ

JavaScriptとsteady.jsに関するthujikunのブックマーク (1)

  • Steady.js

    Steady.js A jank-free module to do logic on the onscroll event without performance regressions in @media-query like conditions. Get Started Install Star on Github How does it work? Steady's main goal is to make the user scrolling jank-free. Below is an explaination on how Steady is working under the hood: First, Steady attaches a handler to the onscroll event, that excutes the trackers (collecting

    thujikun
    thujikun 2014/07/29
    scroll位置リスナを登録できる。内部的にscrollイベントではなくrequestAnimationFrame使うことでパフォーマンス良くしてるらしい。iPhoneの慣性スクロール中も動作してくれそう。試してないけど。
  • 1