0
クラスの結果がビューポートにあるかどうかをチェックするこのコードがあります。それが実行されると、それはajaxリクエストを実行します。jquery scroll ajaxの1つのリクエストへの制限
$(window).scroll(function() {
if ($("a.more-results:in-viewport").each(function() {
$.ajax({
type: 'GET',
url: $(this).attr('href'),
data: args,
success: function(response) {
response = $.trim(response);
if($('#more-results-link').length){
$('#more-results-link').remove();
} else {
$('.more-results-link:visible').remove();
}
var $responseHTML = $(response).appendTo(ajaxElement);
$responseHTML.find("input:checkbox").uniform({useID: false});
}
});
}));
});
、これは動作します..しかし... ...
現在のところ、この単一の機能が必要で、js/cssサイズを最小限に抑える必要があるため、これらのファイルをすべて追加することは現在オプションではありません。/ – Mackelito