yall.js

A fast, flexible, and small SEO-friendly lazy loader.

MIT License

Downloads
11K
Stars
1.4K
Committers
14

Bot releases are hidden (Show)

yall.js - 3.2.0 Latest Release

Published by malchata over 4 years ago

  • This release addresses #51 (thank you, @radfahrer!) by adding the noPolyfill option.
  • Barring bugfixes, development of yall.js is complete. Please consider using native lazy loading instead if you can. A postinstall script will notify you of this on install from here on out.
  • Small tweaks to keep file size in check.
  • Fixed some wonky video autoplay issues (thanks again, @radfahrer!)
yall.js - 2.2.1 release!

Published by malchata over 5 years ago

This is a small bugfix release:

  • #38 was fixed. In some cases, use of MutationObserver was not reloading images in some SPA scenarios.
  • An unlogged bug was discovered where Safari would download unnecessary assets because yall was setting src attributes before srcset attributes, causing Safari to get the src-referenced resource first. This could be side-stepped by specifying an attribute order of data-srcset first, then data-src. yall's data- attribute flipping function was refactored to fix this.
  • Slightly smaller build size.
yall.js - 2.2.0 release!

Published by malchata almost 6 years ago

This release adds a couple new features and bugfixes.

Bugs fixed:

  • Resolved bugs #24 and #28 by removing async decoding via Image.decode(). This feature was causing a fair bit of unpredictable behavior, so removing it was a reasonable step. It may be added back in later on if necessary.
  • Added the ability to lazy load <video> image placeholders brought in by poster. This was proposed in #32 by @DanThePainter and @leeoniya.
  • Added the ability to lazy load CSS background images. New options were added to the API to control classes used for this functionality.
yall.js - 2.0.2 release!

Published by malchata about 6 years ago

Bug fixes galore:

  • Fixed #23, which encapsulates all of yall's dependent functions in the main yall function. (Thanks, @michielkouwenhoven!)
  • Fixed #21, which improves development experience on Windows machines. (Thanks, @kalled!)
  • Fixed #18, which prevents yall.js from overwriting all data- attributes on elements by using an attribute whitelist. (Thanks, @xanisu!)
  • Fixed an issue which broke yall.js on Samsung Internet.
yall.js - 2.0.0 release!

Published by malchata over 6 years ago

This is a rewrite of yall.js. Improvements/changes include:

  • <iframe> elements can now be lazy loaded.
  • requestIdleCallback can be optionally used to lazy load elements while optimizing browser idle time.
  • Images can be lazy loaded after they're added to the DOM by specifying the observeChanges option.
  • Simple <img> lazy loading use cases now benefit from async decoding using Image.decode().
  • Unlike version 1, a number of configuration options now exist that allow you to change behaviors to your liking.

File an issue for any bugs you encounter. Testing was extensive, but bugs are always possible!

Happy lazy loading!

yall.js - Added lazy loading for `<video>` elements.

Published by malchata almost 7 years ago

yall-1.2.0.min.js.zip
The title says it all! Check the docs or test folder for the usage pattern on <video> tags.

yall.js - Fix for bug where images sometimes didn't load.

Published by malchata almost 7 years ago

yall-1.1.2.min.js.zip
Includes a fix for #13 from @anthonygore. Thank you, sir!

yall.js - Initial release.

Published by malchata almost 7 years ago

yall-1.1.1.min.js.zip
Not really the initial release, but we have to start somewhere.

Package Rankings
Top 2.34% on Npmjs.org
Related Projects