How do I change the size of the default on lazyload?

https://github.com/tuupola/jq.

I found this resource
only

<img class="lazyload" src="loading.gif(loading.gif)" data-src="" />

loading this video, I am obviously a very small 30x30
, but the time he shows is fully enlarged.
if you change the format of img, the film to be added will also change.
how to realize that there is only loading when I can control the size of like 30x30
when the original output is not affected?


has an ultra-simple method, which is to use max-width of css, and the value is the width of the picture to be loaded

<img class="lazyload" src="loading.gif(loading.gif)" data-src="" style="max-width:200px"/>

my understanding is to know the size of the image to be loaded in advance, and then write this size on img in order to avoid it, otherwise there is no good way.

isn't it written in the plugin you are looking for

Menu