Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By 1mundus on
Hello,
I'm trying to use responsive image styles to load images depending on the viewport.
Drupal does load images correctly - if you're on a mobile screen, a small image is served, if you have a desktop screen you get a bigger image.
However, if you resize your screen, there is no change - the first image is still used. If you start with the small window (e. g. 400px) and you suddenly expand the window to 1280px, nothing happens - D8 still uses that small image for 400px screen.
Is there a way to make D8 automatically adjust the image upon window resizing? Thank you.