Using SVG as image placeholders
medium.com
Using SVG as image placeholders
1–10 of 139 posts
Re: Using SVG as image placeholders
#2Re: Using SVG as image placeholders
#3Although that was just for fun, not to create image previews or anything of the sort.
Re: Using SVG as image placeholders
#4Re: Using SVG as image placeholders
#5This is the kind of thing that seems really neat (I love computer generated art) but ultimately the user experience isn't any better than just a solid rectangle, and you're sending like 1kb more per image to show the placeholder.
Re: Using SVG as image placeholders
#6A while back I made something similar, using Voronoi diagrams to approximate an image: https://codegolf.stackexchange.com/a/50345/4162 Although that was just for fun, not to create image previews or anything of the sort.
Re: Using SVG as image placeholders
#7This is the kind of thing that seems really neat (I love computer generated art) but ultimately the user experience isn't any better than just a solid rectangle, and you're sending like 1kb more per image to show the placeholder.
I disagree. If you have a user on a very slow connection on an image heavy site, the user experience will be enhanced significantly. Depending on how you implement it, you might even save them bandwidth. No interesting content for them in the current viewport and they scroll past the placeholders/go to the next page? Cancel the XHR requests you made for the full-size thumbnails/images and start anew.
I've had this happen with blurred images on some websites.
Re: Using SVG as image placeholders
#8Here’s a demo I made using Primitive + Vivus: http://minimaxir.com/2016/12/primitive/
Re: Using SVG as image placeholders
#9> FLIF is lossless, but can still be used in low-bandwidth situations, since only the first part of a file is needed for a reasonable preview of the image.
> A FLIF image can be loaded in different ‘variations’ from the same source file, by loading the file only partially. This makes it a very appropriate file format for responsive web design.
The loading video on http://flif.info/index.html makes this clear.
Re: Using SVG as image placeholders
#10This is the kind of thing that seems really neat (I love computer generated art) but ultimately the user experience isn't any better than just a solid rectangle, and you're sending like 1kb more per image to show the placeholder.
I disagree. If you have a user on a very slow connection on an image heavy site, the user experience will be enhanced significantly. Depending on how you implement it, you might even save them bandwidth. No interesting content for them in the current viewport and they scroll past the placeholders/go to the next page? Cancel the XHR requests you made for the full-size thumbnails/images and start anew.
I wish there was a way to disable this functionality.