å èªã¿ããè¤æ°ã®ç»åã®å ¨ã¦ã®èªã¿è¾¼ã¿ãå®äºããããä½ãå¦çãããä¾ã«ãªãã¾ããjQueryã®Deferred/Promiseã¢ãã«ããåç¥ã®æ¹åãã«ãªãã¾ãã®ã§ãä¸ç´è åãæ å ±ã«ãªãã¨æãã¾ãããµã³ãã«ã³ã¼ãã¯ã以ä¸ã®ããã«ãªãã¾ãã jQuery(function ($) { var promise; // ç»åã®å èªã¿é¢æ°ãpromiseãè¿ãã function preload() { var promises = [], retDefer = $.Deferred(), imgs = $.map(arguments, function (val) { return val; }); $.each(imgs, function () { var img = new Image(), defer = $.Deferred(); img.onload = function () { de
{{#tags}}- {{label}}
{{/tags}}