Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

199
Vistas
In `lazysizes.js` what do the width values in datasets actually do?

I'm using the JS plugin Lazysizes.js https://github.com/aFarkas/lazysizes

I'm using multiple images in data-srcset, but I'm confused as to what the trailing widths do, eg:

<img
    data-sizes="auto"
    data-src="image3.jpg"
    data-srcset="image3.jpg 600w,
        image1.jpg 220w,
        image2.jpg 300w,
        image3.jpg 600w,
        image4.jpg 900w"
    class="lazyload" />

Are these the constrained max proportions for each image?

Or are these the breakpoints at which the images are used?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

The width defined in data-srcset is the decoded width of the image.

Breakpoints can be defined and mapped to individual image widths using the data-sizes property if you wish to have more control over using auto

Source: lazysizes repo links to this blog post explaining the syntax of a responsive image

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda