Image.blade.php should contain width and height attributes to avoid layout shift #2597
Unanswered
ericp-mrel
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The single image file view (https://github.com/spatie/laravel-medialibrary/blob/main/resources/views/image.blade.php) should contain the width and height attributes like the responsive image template in order to avoid layout shifts when the image loads by the browser and helps improve Core Web Vitals.
Beta Was this translation helpful? Give feedback.
All reactions