Daugilas / lazyYT

A jQuery plugin to lazy load those dang Youtube iframe videos.
Other
56 stars 14 forks source link

Low-res thumbnail image? #7

Closed emwee closed 7 years ago

emwee commented 8 years ago

Hi,

I implemented this plugin to improve the load time of a page I'm working on; only to discover the thumbnail image that's picked when not setting a width (maxresdefault.jpg) is actually 462 kB, which is more than the JS filesize I was trying to avoid! Is there any way to optimize this?

Thanks!

Daugilas commented 8 years ago

@emwee I've dome some updates on how images are loaded. Could you please check if this problem persists?

Daugilas commented 7 years ago

Well, according to my demo's its selecting an image based on the actual video container size.