Skip to content

3.0.0

Compare
Choose a tag to compare
@shinsenter shinsenter released this 12 Aug 10:00
· 8 commits to main since this release
567b8c1

Released defer.js v3.0.0

All examples and demo have been re-created.

New Defer.lazy variable and waitForInteraction argument were added since v3.0.

Setting Defer.lazy=true or waitForInteraction=true tells the library to delay the execution of deferred scripts until the user starts interacting with the page regardless of the page load event.

Changing the Defer.lazy variable will also affect the default behavior of these functions:

  • Defer()
  • Defer.all()
  • Defer.css()
  • Defer.js()