Skip to content
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

Handle loading attribute as part of lazy field in image shortcode plugin #6

Open
Kapelianovych opened this issue Jan 12, 2022 · 1 comment
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@Kapelianovych
Copy link
Contributor

Kapelianovych commented Jan 12, 2022

There might be a way to decide whether we can use the native loading attribute or a library for lazy loading. The same goes for the decoding attribute.

@Kapelianovych Kapelianovych self-assigned this Jan 12, 2022
@Kapelianovych Kapelianovych added bug Something isn't working enhancement New feature or request labels Jan 12, 2022
@Kapelianovych Kapelianovych changed the title Handle loading attribute as part of lazy field in image shortcode plugin: https://caniuse.com/loading-lazy-attr Handle loading attribute as part of lazy field in image shortcode plugin Jan 12, 2022
@Kapelianovych
Copy link
Contributor Author

Workaround till the issue will be fixed:

this.image('url', { loading: 'eager', decoding: 'sync' })

You can rewrite loading and decoding attributes of the image by passing them explicitly to image options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant