Este plugin no se ha probado con las últimas 3 versiones mayores de WordPress. Puede que ya no tenga soporte ni lo mantenga nadie, o puede que tenga problemas de compatibilidad cuando se usa con las versiones más recientes de WordPress.

Lazy Load

Descripción

Lazy load images to improve page load times. Uses jQuery.sonar to only load an image when it’s visible in the viewport.

This plugin is an amalgamation of code written by the WordPress.com VIP team at Automattic, the TechCrunch 2011 Redesign team, and Jake Goldman (10up LLC).

Uses jQuery.sonar by Dave Artz (AOL).

Instalación

  1. Sube el plugin a tu directorio de plugins
  2. Activa el plugin a través del menú «Plugins» en WordPress
  3. ¡Disfrútalo!

FAQ

Cómo cambio la imagen del marcador de posición

add_filter( ‘lazyload_images_placeholder_image’, ‘my_custom_lazyload_placeholder_image’ );
function my_custom_lazyload_placeholder_image( $image ) {
return ‘http://url/to/image’;
}

¿Cómo puedo cargar de forma perezosa otras imágenes en mi tema?

Puedes utilizar la función de ayuda lazyload_images_add_placeholders :

if ( function_exists( 'lazyload_images_add_placeholders' ) )
    $content = lazyload_images_add_placeholders( $content );

Or, you can add an attribute called «data-lazy-src» with the source of the image URL and set the actual image URL to a transparent 1×1 pixel.

También puede utilizar el búfer de salida, aunque no se recomienda:

if ( function_exists( 'lazyload_images_add_placeholders' ) )
    ob_start( 'lazyload_images_add_placeholders' );

Esto cargará perezosamente todas tu imágenes.

Reseñas

29 de abril de 2023
Having this plugin installed on my WordPress pages for some time resulted in having them all malware-infected which happened literally yesterday. The plugin had its name changed to some 'WordPress CMS module' and its directory name was changed as well.
18 de noviembre de 2019
It produces random grayed out pictures within Jupiter theme image galleries. The galleries work like charm after disabling this bundled plugin.
10 de febrero de 2019
Seems to work for some images but not for all, with no real explanation about why. There are no configuration options so I couldn't find a way to fine-tune it.
1 de noviembre de 2018
The idea might be good but its messing up the entire websites, mostly on different sliders.
Leer todas las 53 reseñas

Colaboradores y desarrolladores

«Lazy Load» es un software de código abierto. Las siguientes personas han colaborado con este plugin.

Colaboradores

«Lazy Load» está traducido en 7 idiomas. Gracias a los traductores por sus contribuciones.

Traduce «Lazy Load» a tu idioma.

¿Interesado en el desarrollo?

Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.

Registro de cambios

0.6.1

0.6

  • Filter to control when lazy loading is enabled

0.5

  • Fix lazyload_images_add_placeholders by adding missing return, props Kevin Smith
  • Lazy load avatars, props i8ramin
  • Don’t lazy load images in the Dashboard
  • Better compatibility with Jetpack Carousel

0.4

  • New helper function to lazy load non-post content
  • Prevent circular lazy-loading

0.3

  • Make LazyLoad a static class so that it’s easier to change its hooks
  • Hook in at a higher priority for content filters

0.2

  • Añade etiquetas noscript para permitir que la imagen se muestre en contextos no-js (incluidos los rastreadores), gracias a smub
  • Lazy Load post thumbnails, props ivancamilov

0.1

  • Versión de trabajo inicial