summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rwxr-xr-xjs/viewfeed.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/viewfeed.js b/js/viewfeed.js
index 6ae9cdd8a..e1d9cefdf 100755
--- a/js/viewfeed.js
+++ b/js/viewfeed.js
@@ -1008,11 +1008,12 @@ function unpackVisibleHeadlines() {
if (!isCdmMode()) return;
const rows = $$("#headlines-frame div[id*=RROW][data-content]");
+ const threshold = $("headlines-frame").scrollTop + $("headlines-frame").offsetHeight + 100;
for (let i = 0; i < rows.length; i++) {
const row = rows[i];
- if (row.offsetTop <= $("headlines-frame").scrollTop + $("headlines-frame").offsetHeight) {
+ if (row.offsetTop <= threshold) {
console.log("unpacking: " + row.id);
const content = row.getAttribute("data-content");