luis-almeida / unveil

A very lightweight jQuery plugin to lazy load images
4.16k stars 676 forks source link

[BUG]when window scrolls to <img> with unveil, cpu usage will be at the range 1.8% ~ 2.8% #122

Open wilsoncook opened 7 years ago

wilsoncook commented 7 years ago

For example, when visit unveil's homepage: http://luis-almeida.github.io/unveil/ then scroll down to the images with unveil below, even though the images have loaded, the page has loaded completely, it waste the cpu all the time. image image Is it because the unveil keeps a daemon under background?

dishankjindal1 commented 7 years ago

I think that is why facebook also loads slow, even if you have high speed connection or multi core cpu. Try to open fb in incognito mode and then monitor the cpu. Your are just starting pointless jargon! It is not a bug. Peace..

wilsoncook commented 7 years ago

@DishankJindal you do think the facebook are using unveil? may not agree

dishankjindal1 commented 7 years ago

@ppoo24 you did not understood, i meant use unveil or write your own code. it doesn't matter, it is going to use cpu no matter what. Or if you care about cpu try different language like python(django) or Goalng( it is best for cpu performance )

wilsoncook commented 7 years ago

@DishankJindal Actually, u didn't understand what i said, i was meaning that when using unveil, the usage of cpu will stay at the range of 1.8% ~ 2.8%, if not using unveil, the usage of cpu will become 0% at that render process. What u talked about that the language affect the usage, i'm not talking about this issue, it's at front-end, not back-end.