Skip to content

0.6.0

Compare
Choose a tag to compare
@fpapado fpapado released this 08 Apr 22:17
· 52 commits to master since this release

Features:

  • Support preloading for images that use the srcset attribute, using the srcSet prop
  • Support leaving src unspecified to omit preloading behaviour

Breaking:

  • Only the react-intersection-observer props that are relevant are now exposed in the public API. Those are:
{
rootMargin: string;
threshold: number
}

Docs:

  • Cleaned up eager loading section
  • Added docs and stories for srcset and no preloading
  • Added docs for IntersectionObserverProps