Created
June 12, 2012 09:59
-
-
Save ojimac/2916672 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1 | |
$(document.ready(function() { | |
// snip | |
}); | |
// 2 | |
window.onload = function() { | |
// snip | |
}; | |
は、1 → 2の順でイベントが起きる | |
1. はDOMツリー構築後のイベント | |
2. はDOMツリー構築 + 画像なども全て読み込んだ後のイベント |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
camelmasa
あれ、間違ってる?