-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If the document is smaller than the browser window, infinite scroll is not triggered. #227
Comments
I have this same problem with my page :( |
Created a JSFiddle for testing: http://jsfiddle.net/67726e/ySCAn/4/ |
I have added a new option to Infinite-Scroll called |
For me it works perfectly on every other browser except on Internet Explorer. |
Is IE giving you a particular error or is it just not triggering the loading of more pages? |
It's just not triggering the loading of more posts. Code works when browser is resized and there is vertical scroll, so when scrolling more posts are loaded. I also used debug tool and no errors found. |
I'm using the latest version of Infinite-Scroll on IE9 and it is working for me both on an initial prefill and after resizing a window. What version of IE are you using? |
I also updated to latest infinite-Scroll and tested, on other browsers work, but this might be problem, im using internet explorer 8, didn't updated to latest. |
Ach, yeah that would make sense as I did not test this on IE8. I'm looking in this right now. |
@lonerunner This works for me in IE8 without any problems. Could you please clear your browser's cache to ensure the latest script is loaded, set the |
When i use compatibility mode it loads fine this is what i get in debug
When just browsing without compatibility mode on i get only this
and script not working. Can it be problem because i use it combined with jquery masonry plugin? <script type="text/javascript">
jQuery(document).ready(function($){
$('#container').imagesLoaded(function(){
$('#container').masonry({
// options
itemSelector : '.item',
singleMode: true,
isFitWidth: true
});
});
$('#container').infinitescroll({
navSelector : '#nav-below', // selector for the paged navigation
nextSelector : '.nav-previous a', // selector for the NEXT link (to page 2)
itemSelector : '.item', // selector for all items you'll retrieve
prefill : true,
debug : true,
loading: {
finishedMsg: 'No more pages to load.',
img: 'http://i.imgur.com/6RMhx.gif'
}
},
// trigger Masonry as a callback
function( newElements ) {
// hide new items while they are loading
var $newElems = $( newElements ).css({ opacity: 0 });
// ensure that images load before adding to masonry layout
$newElems.imagesLoaded(function(){
// show elems now they're ready
$newElems.animate({ opacity: 1 });
$('#container').masonry( 'appended', $newElems, true );
});
}
);
});
</script> |
The Masonry/Infinite-Scroll setup is not the issue, I myself use this and have no issues on IE8. Rather I think you have some quirks with your site you are working on. This issue is fixed so I am going to close it. I would recommend running all of your code (HTML, CSS, & Javascript) through validation tools to make sure all is fine. I would guess you have something that is a bit off and is causing IE to only work correctly when in compatibility mode. If you have are still having problems with this after you've ensured your code is fine, feel free to open another ticket and I will take a look at it. |
Hey Has anybody else encountered this problem? |
@placid2000 The prefill functionality only loads the pages until either there are no more pages to load, or the document is full enough to allow scrolling. If neither of these conditions are met and you are still having problems, please open a ticket with the details of your issue. Otherwise please don't comment on a closed ticket as it will spam the other people on the list. |
$("#wrapper").css("min-height",($(window).height() + 5)); I fixed using this. |
It has happened to some that when you concatenate the new data, the scroll returns to the beginning of the page |
Just playing around with infinite scrolling here with some demo pages. I have a huge (2560x1440px) monitor at work and if the document is smaller than my browser window, infinte scroll is not fired. Resizing the window so that it is smaller than the page and refreshing the page works as intended.
Test page is available on pastebin: http://pastebin.com/wee5BcZJ
The text was updated successfully, but these errors were encountered: