Açıklama Yok

lazy-images.php 1.1KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * Module Name: Lazy Images
  4. * Module Description: Speed up your site and create a smoother viewing experience by loading images as visitors scroll down the screen, instead of all at once.
  5. * Sort Order: 24
  6. * Recommendation Order: 14
  7. * First Introduced: 5.6.0
  8. * Requires Connection: No
  9. * Auto Activate: No
  10. * Module Tags: Appearance, Recommended
  11. * Feature: Appearance
  12. * Additional Search Queries: mobile, theme, fast images, fast image, image, lazy, lazy load, lazyload, images, lazy images, thumbnail, image lazy load, lazy loading, load, loading
  13. */
  14. /**
  15. *
  16. * @since 8.8
  17. *
  18. * The core of this module has been migrated to an standalone reusable package.
  19. */
  20. /*
  21. * Initialize lazy images on the wp action so that conditional
  22. * tags are safe to use.
  23. *
  24. * As an example, this is important if a theme wants to disable lazy images except
  25. * on single posts, pages, or attachments by short-circuiting lazy images when
  26. * is_singular() returns false.
  27. *
  28. * See: https://github.com/Automattic/jetpack/issues/8888
  29. */
  30. add_action( 'wp', array( 'Automattic\\Jetpack\\Jetpack_Lazy_Images', 'instance' ) );