タグ

関連タグで絞り込む (0)

  • 関連タグはありません

タグの絞り込みを解除

JavaScriptとTimerとlibraryに関するmonjudohのブックマーク (4)

  • Ben Alman » jQuery doTimeout: Like setTimeout, but better

    jQuery doTimeout takes the work out of delayed code execution, including interval and timeout management, polling loops and debouncing. In addition, it’s fully jQuery chainable! Generally, setTimeout is used in JavaScript to delay the execution of some code, which is fairly easy to do and doesn’t require much, if any additional code. Where it starts to get a little more complicated is when you wan

  • jQuery idleTimer plugin - Paul Irish

    There are a few cases where you want to know if the user is idle. Namely: You want to preload more assets You want to grab their attention to pull them back You want close their banking session after 5 minutes of inactivity. (Jerk!) You want the site to sneak off the screen and see if they notice ;-) Nick Zakas wrote a script for YUI3 to handle these cases. His writeup has a great description of t

    monjudoh
    monjudoh 2009/06/05
    ユーザの入力が止まってn ms経過、その後初めてのユーザの入力が発生、を擬似eventとして取得できるようにするplugin。
  • 中機能タイマー - latest log

    uu.create.timer()は、window.setInterval() と window.setTimeout() の代替手段となるものです。 さほど高機能でもないので、中機能ってことで。 特徴: 低負荷 多数のタイマー(10〜)を同時に使用する状況下で、CPU負荷がsetInterval(),setTimeout()よりも20〜30%程軽い。 サスペンド(一時停止)とレジューム(再開)が可能。 ループ回数を指定可能。無限ループも可能。 ループ回数を1にすれば、setTimeout(), 無限にすればsetInterval()互換の動作。 delay時間をプログラマブルに変更可能。 アニメーションGIFのような処理がとても簡単。 メモリコンパクションで使い古しのリソースをスッキリ削れる。 使いどころ: もっさりなサイト(エフェクトを多用しているサイト)なら導入するだけで効果がある

    中機能タイマー - latest log
    monjudoh
    monjudoh 2008/08/25
    『多数のタイマー(10本~)を同時に使用する状況下で~軽い』『サスペンド(一時停止)とレジューム(再開)が可能。』『ループ回数を指定可能。~無限にすればsetInterval()互換』『delay時間をプログラマブルに変更可能』
  • 1