jquery document ready , window load の順番

$(window).load(function() {
console.log(‘window load’);
});
$(document).ready(function(){
console.log(‘document ready’);
});
$(function() {
console.log(‘jquery’);
});

window loadは画像をなどを呼んだ後に呼ばれるので最後
document readyはドキュメントが出来たら呼ばれる?ので画像とか終わってから処理したい場合はダメ。
document readyと$()は同じ?みたいです。

This entry was posted on 月曜日, 4月 16th, 2012 at 7:20 PM and is filed under Javascript. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Unityによるゲームを公開しております iOS/Android
https://itunes.apple.com/jp/app/lost-knight-3d-action/id900917032
https://play.google.com/store/apps/details?id=com.groundroad.runknight

各種開発支援・機能開発等小さいお仕事などもお請けしております。
unity開発支援, PHPシステム開発, javascript/html5 フロント開発, titanium mobileアプリ開発
お気軽にお問い合わせください
大崎・五反田近郊での対面でのお打ち合わせはいつでも可能です。