タグ

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

  • 関連タグはありません

タグの絞り込みを解除

JavascriptとjavascriptとDOMに関するlockcoleのブックマーク (2)

  • Collection & Copy - ドキュメントのロード完了に合わせて関数を実行する

    JavaScriptページロード時にプログラムを実行するためにwindow.onloadやbody.onloadがしばしば使われる。しかし、ページ内に大きな画像が存在する場合などは、画像のロードを待つため、実行が遅れてしまう。「ドキュメントのロードが終わっていて、かつ、イメージのロードが完了する前」に関数を実行する方法のリンク2つの要点をコピー。 script要素defer、DOMContentLoadedイベントを利用する方法The window.onload Problem - Solved! Firefoxの場合非公式のイベントハンドラ、DOMContentLoadedを利用する。 // for Mozilla browsersif (document.addEventListener) { document.addEventListener("DOMContentLoaded",

    lockcole
    lockcole 2007/07/18
    script要素のdefer属性,DOMContentLoadedイベントを利用する方法,それからsetIntervalを使う方法。これライブラリに組み込んで欲しいところだけど,難しいかな。体感性能に影響があるのでなんとかしたいところ。
  • IE 6.0 - Javascript - Benchmark - W3C DOM vs. innerHTML

    Section 8F of the book discusses innerHTML and when it's preferable to "real" W3C DOM methods. This is a test page intended to find out which method of generating large amounts of content is fastest in the browsers. Of course the results differ significantly from browser to browser. Each of the test scripts creates a 50x50 table, all of whose cells are filled with one character, *. Then the time y

  • 1