diff options
author | Yaroslav de la Peña <contact@yaroslavps.com> | 2018-10-09 15:18:48 +0300 |
---|---|---|
committer | Yaroslav de la Peña <contact@yaroslavps.com> | 2018-10-09 15:18:48 +0300 |
commit | 11b3c6ff961631309b72e86eddd1d70ce539474a (patch) | |
tree | 051af8f639feb1884c62811031c30f6caf5a30cc /weblog | |
parent | 0761fdd7cb8fa022b717f20fb121a734494644c9 (diff) | |
download | w3blog-11b3c6ff961631309b72e86eddd1d70ce539474a.tar.gz w3blog-11b3c6ff961631309b72e86eddd1d70ce539474a.zip |
improvement on responsiveness of infinite load
Diffstat (limited to 'weblog')
-rwxr-xr-x | weblog/templates/weblog/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weblog/templates/weblog/index.html b/weblog/templates/weblog/index.html index 4808ec2..9568e9d 100755 --- a/weblog/templates/weblog/index.html +++ b/weblog/templates/weblog/index.html @@ -161,7 +161,7 @@ {% if infinite_load %}
window.addEventListener("scroll", function(){
if (current_page != last_page){
- if(document.documentElement.scrollHeight - document.documentElement.scrollTop === document.documentElement.clientHeight)
+ if(document.documentElement.scrollHeight - document.documentElement.scrollTop - 10 <= document.documentElement.clientHeight)
loadNextPage();
}
});
|