I'm using the lazysizes plugin in conjunction with srcset on a fluid layout. I can't figure out how to get the browser to load the page to the correct length rather than extending the page as you scroll.
I have made a codepen using the bootstrap framework to demonstrate here
http://codepen.io/elevenelevne/pen/EKbERV
After much reading I'm sure it is to do with the browser not being able to calculate the height as it's not set but I can't quite get it to work in a responsive way
Code but with say 10 rows
<div class="container-fluid">
<div class="row-fluid">
<div class="col-xs-12 col-sm-6">
<img data-sizes="auto" data-src="http://placehold.it/160x107" data-srcset="http://placehold.it/320x231 640w, http://placehold.it/640x426 1280w, http://placehold.it/1000x666 2000w, http://placehold.it/2500x1666 4000w" class="img-responsive lazyload" />
</div>
<div class="col-xs-12 col-sm-6">
<img data-sizes="auto" data-src="http://placehold.it/160x107" data-srcset="http://placehold.it/320x231 640w, http://placehold.it/640x426 1280w, http://placehold.it/1000x666 2000w, http://placehold.it/2500x1666 4000w" class="img-responsive lazyload" />
</div>
</div>
</div>
</div>
Any help would be gratefully accepted