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.
Hi,
So far, the images on my site are resized only after reloading the page - for example: mobile width shows small images, but after resizing the window the pictures are not switched for larger ones. For larger screen I have to reload the page. Is this by design or I have set up something wrong?
Also after loading a page, I can see in chrome network tab, that original images (../sites/default/files/styles/adaptive/public/xxx.jpg) were not loaded and are with status 302.
I just want to be sure that this how this module works. Thank you.
Comments
Comment #2
spotzero CreditAttribution: spotzero at Coldfront Labs Inc. commentedYou've described exactly how this module works.
JS sets a cookie with the screen size.
Images point to the "adaptive" style.
Rewrite rule redirect the browser from the "adaptive" style to the configured one based on the cookie.