intersection-observer.js 684 B

123456789101112131415161718192021222324
  1. /*!
  2. {
  3. "name": "Intersection Observer",
  4. "property": "intersectionobserver",
  5. "caniuse": "intersectionobserver",
  6. "tags": ["dom"],
  7. "notes": [{
  8. "name": "W3C Spec",
  9. "href": "https://w3c.github.io/IntersectionObserver/"
  10. }, {
  11. "name": "IntersectionObserver polyfill",
  12. "href": "https://github.com/w3c/IntersectionObserver/tree/master/polyfill"
  13. }, {
  14. "name": "MDN Docs",
  15. "href": "https://developer.mozilla.org/en/docs/Web/API/Intersection_Observer_API"
  16. }]
  17. }
  18. !*/
  19. /* DOC
  20. Determines if Intersection Observer API is available.
  21. */
  22. define(['Modernizr'], function (Modernizr) {
  23. Modernizr.addTest('intersectionobserver', 'IntersectionObserver' in window);
  24. });