jQuery Ajax 呼び出しは、コールバックする前にターゲット ページの画像をプリロード/ロードしないことに気付きました。したがって、基本的にはhtmlをロードしてからコールバックを作成し、コールバックの後に画像/画像のロードを開始します。
だから私の質問は、追加機能の前にターゲットページの画像もロード/プリロードされるようにする方法があるかどうかです。
コード例:
$.ajax({
url: ''+nextHref+'',
success: function(data) {
var $response = $(data);
var oneval = $response.find('#ContainerWrapper').html();
// Then some kind of function that preloads the target images before it appends the ajax result. So basically the part below is where I don't know what o do.
$response.find('#ContainerWrapper img').examplepreloadfunction(function(){
$("#ContainerWrapper").append(oneval);
});
}
});
答え、手がかり、アイデア、または実験はありますか?