-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for loading attribute #1730
Conversation
docs/installation-setup.md
Outdated
@@ -73,7 +72,7 @@ return [ | |||
* images. By default we optimize for filesize and create variations that each are 20% | |||
* smaller than the previous one. More info in the documentation. | |||
* | |||
* https://docs.spatie.be/laravel-medialibrary/v8/advanced-usage/generating-responsive-images | |||
* https://docs.spatie.be/laravel-medialibrary/v7/advanced-usage/generating-responsive-images |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be v8?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! (Except for the docs version maybe?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't believe it always makes sense to tie the loading attribute value to conversions. It's okay to have there, but there should also be a way to modify it when rendering the image in HTML, e.g. {{ $media->lazy() }}
.
This was at the request of @willemvb that we tied it to the conversion. Should anybody want a function to set it manually, I'd be open for a PR that adds that. |
@freekmurze hmm must be some kind of misunderstanding, since my initial suggestion (in Slack) was something like |
No description provided.