Skip to content

v.4.0.0 - MAJOR UPDATE + 1 small breaking change

Compare
Choose a tag to compare
@jakubmuda jakubmuda released this 20 Jun 18:31
· 48 commits to master since this release
3ceab27

CSS:

  • changed layout so that container maintains 16/9 ratio even if JS not loaded
  • thumbnails are loaded as background-image using style attributes and CSS variables.

JS:

OTHER:

  • improved documentation
  • DEMO - Bootstrap updated to v5

UPDATE from v3:

data-random="" attribute was renamed to data-thumb="" just to be more intuitive.

Change: <div class="yt-lazyload" data-id="XXXXXXXX" data-random="" data-logo="1">

to: <div class="yt-lazyload" data-id="XXXXXXXX" data-thumb="" data-logo="1">

If you don't like this change, change dataset.thumb to dataset.random in JS file.