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

New Trait for fetchPriority attribute in images #3850

Merged

Conversation

pmoreno-rodriguez
Copy link
Contributor

The fetchPriority property of the HTMLImageElement interface represents a hint given to the browser on how it should prioritize the fetch of the image relative to other images.

The fetchPriority property allows you to signal high or low priority image fetches. This can be useful when applied to elements to signal images that are "important" to the user experience early in the loading process.

@pmoreno-rodriguez
Copy link
Contributor Author

Hi @rhukster.

I've created a new attribute for images, to complete the new features that html provides for image loading. Along with this pull request you have three more, in case you want to accept them and include them in the Grav system:

I hope you give it the thumbs up and Grav gets a little better every day.

@rhukster rhukster merged commit 346d194 into getgrav:develop Oct 25, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants