News for hackers. Stuff that matters.
Re:Vue Lazy Image Loading by siquick on Thursday November 15, 2018 @11:11AM (#18460401)
Just in time - in the middle of building out an image intensive Vue app.

For the record, Vue has been an absolute dream to work with and major props to the creators.

Re:Vue Lazy Image Loading by wjossey on Thursday November 15, 2018 @11:37AM (#18460663)
Ditto for me. I’m a full year into using it for my startup and it’s been a real benefit for our business. I was really skeptical of whether or not I needed an SPA for our product, but now I’m really glad that’s the route I went.

One thing I’ve done that might be the reason I’m so happy with Vue is that I haven’t tried to manage state on the client. There’s more overhead on page transitions certain actions, but it does seem to limit my exposure to WTF style bugs.

Re:Vue Lazy Image Loading by kbenson on Thursday November 15, 2018 @11:34AM (#18460630)
Awesome work. I'm a vue novice,and I wanted something similar to this a while back and found something that worked for my needs in the bootstrap+vue project[1] since I was already using that, but this might have fit my needs just as well. I'm sure I would have opted for something like this if I wasn't already using the larger bootstrap component tie-in project.

1: https://bootstrap-vue.js.org/docs/components/image#lazy-load...

Re:Vue Lazy Image Loading by ksec on Thursday November 15, 2018 @11:15PM (#18466349)
Am I the only one who really dislike lazy load?

I want the image to be there, not to load when I scroll down. It should only lazy load images that is 2 screen below my current view.

Re:Vue Lazy Image Loading by zeveb on Thursday November 15, 2018 @02:13PM (#18462261)
Please don’t do this. Users should never require JavaScript to be enabled to view text or images.
Re:Vue Lazy Image Loading by alphaoide on Thursday November 15, 2018 @02:21PM (#18462339)
Vue is used a lot for a single-page application which automatically requires JavaScript.
Re:Vue Lazy Image Loading by victornomad on Thursday November 15, 2018 @02:45PM (#18462590)
Nuxt.js uses Vue.js to create static html that doesn't require javascript in the end-user. If this library is well made should provide a fallback to load the images synchronously.
Re:Vue Lazy Image Loading by RussianCow on Thursday November 15, 2018 @05:01PM (#18463849)
Or you just use a regular <img> tag for server-rendered content? Am I missing something?
Re:Vue Lazy Image Loading by hermanradtke on Friday November 16, 2018 @12:32AM (#18466659)
If Ihave a product listing page with a lot of images on it, I want to load the images above the fold first. Once those are loaded, I can load the rest.
Re:Vue Lazy Image Loading by hawski on Friday November 16, 2018 @03:38AM (#18467417)
Isn't it how browsers work on general? They would try to download resources as they appear in HTML, but they would not do this over more than reasonable number of concurrent connections.
Re:Vue Lazy Image Loading by sjroot on Thursday November 15, 2018 @10:41AM (#18460084)
Been looking for something like this. Thank you very much for sharing!
Re:Vue Lazy Image Loading by jacob019 on Thursday November 15, 2018 @10:12AM (#18459816)
demo?