Skip to content

Commit 71146c8

Browse files
committed
partial fix infinite demo in Opera Mini
1 parent 3d3b021 commit 71146c8

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

demo/infinite.htm

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@
1616
</style>
1717
<script>
1818
$(document).ready(function () {
19-
$('#marker-end')
20-
.on('lazyshow', function () {
21-
$.ajax({
19+
if(!$.lazyLoadXT.forceLoad) {
20+
$('#marker-end')
21+
.on('lazyshow', function () {
22+
$.ajax({
2223
url: 'infinite.htm',
2324
dataType: "html"
2425
})
@@ -34,8 +35,9 @@
3435
$(window).lazyLoadXT();
3536
$('#marker-end').lazyLoadXT({visibleOnly: false, checkDuplicates: false});
3637
});
37-
})
38-
.lazyLoadXT({visibleOnly: false});
38+
})
39+
.lazyLoadXT({visibleOnly: false});
40+
}
3941
});
4042
</script>
4143
</head>

0 commit comments

Comments
 (0)