Masonry, infinite scrolling and Django
brack3t.com
Masonry, infinite scrolling and Django
1–10 of 13 posts
Re: Masonry, infinite scrolling and Django
#2Re: Masonry, infinite scrolling and Django
#3Did I miss the link to the example showing it in action? Or is that left as an exercise for the student?
Screw it, I added a link to the example. It's on tindie.com.
Re: Masonry, infinite scrolling and Django
#4Re: Masonry, infinite scrolling and Django
#5Oh nice, the best takeaway from this (for me) was that desandro apparently has created a hack to deal with the whole is-an-image-in-cache-or-isn't-it problem: https://github.com/desandro/imagesloaded
Another thing to be careful with are social buttons, whose height may change after the initial item is rendered. That's easily avoided with a fixed CSS height, though.
Re: Masonry, infinite scrolling and Django
#6Oh nice, the best takeaway from this (for me) was that desandro apparently has created a hack to deal with the whole is-an-image-in-cache-or-isn't-it problem: https://github.com/desandro/imagesloaded
The best way to avoid this altogether is to set the image width and height in the img tag. That way, content can be shown right away, even before the images are loaded. Another thing to be careful with are social buttons, whose height may change after the initial item is rendered. That's easily avoided with a fixed CSS height, though.
Re: Masonry, infinite scrolling and Django
#7Oh nice, the best takeaway from this (for me) was that desandro apparently has created a hack to deal with the whole is-an-image-in-cache-or-isn't-it problem: https://github.com/desandro/imagesloaded
The best way to avoid this altogether is to set the image width and height in the img tag. That way, content can be shown right away, even before the images are loaded. Another thing to be careful with are social buttons, whose height may change after the initial item is rendered. That's easily avoided with a fixed CSS height, though.
However, if you're only in control of the front-end and are just reading from an API of photos where you're given a stream of image urls...how do you determine which css-selector (i.e. '.vert-image' and 'horz-image' with defined h/w dimensions) to put out? You can obviously just restrict everything to a one-size box, but either the vertical or the horizontal images are going to be given short shrift.
Re: Masonry, infinite scrolling and Django
#8I like the typography on the blog, though.
Re: Masonry, infinite scrolling and Django
#9Edit: along with Scroll Events http://james.padolsey.com/demos/scrollevents/