- Issue created by @Anybody
- Merge request !23Issue #3356080: Add lazy loading parameter to drupal_image() or add attribute example in Cheat Sheet → (Merged) created by Anybody
- last update
over 1 year ago 11 pass - Status changed to Needs review
over 1 year ago 4:34pm 24 April 2023 - 🇩🇪Germany Anybody Porta Westfalica
To be reviewed (for docs) and discussed. Which way should we go @Chi?
- 🇩🇪Germany Anybody Porta Westfalica
Core does the same:
'#attributes' => ['loading' => 'lazy'],
https://git.drupalcode.org/project/drupal/-/commit/f8eb47e#f8dc85135034c...So this is the right way via the attributes array. Still fixes from 🐛 drupal_image() needs #width / #height values for fully working image cache scale, lazy-loading and img attributes RTBC are needed for correct image size reservation.
- Status changed to RTBC
over 1 year ago 7:09am 11 May 2023 Confirming this is the right way to do it. Definitely helpful to have this in the documentation examples.
- First commit to issue fork.
- last update
11 months ago 11 pass - Status changed to Fixed
11 months ago 8:10am 5 January 2024 Automatically closed - issue fixed for 2 weeks with no activity.