Skip to content

Improvement/provide with and height for gravatar avatar#999

Open
obfischer wants to merge 1 commit intoluizdepra:mainfrom
obfischer:improvement/provide-with-and-height-for-gravatar-avatar
Open

Improvement/provide with and height for gravatar avatar#999
obfischer wants to merge 1 commit intoluizdepra:mainfrom
obfischer:improvement/provide-with-and-height-for-gravatar-avatar

Conversation

@obfischer
Copy link
Copy Markdown

Prerequisites

Put an x into the box(es) that apply:

  • This pull request fixes a bug.
  • This pull request adds a feature.
  • This pull request introduces breaking change.

Description

The img tag for an avatar via Gravatar now specifies the width and height of the image.

Providing these attributes helps to avoid Cumulative Layout Shift. Avoiding this improves the page speed ranking of the page.

Issues Resolved

There is no corresponding issue.

Checklist

Put an x into the box(es) that apply:

General

  • Describe what changes are being made
  • Explain why and how the changes were necessary and implemented respectively
  • Reference issue with #<ISSUE_NO> if applicable

Resources

  • If you have changed any SCSS code, run make release to regenerate all CSS files

Contributors

  • Add yourself to CONTRIBUTORS.md if you aren't on it already

The img tag for an avatar via Gravatar now specifies the
width and height of the image.

Providing these attributes helps to avoid Cumulative
Layout Shift. Avoiding this improves the page speed
ranking of the page.
@obfischer
Copy link
Copy Markdown
Author

I can extend the change so that the also for a local avatar image these attributes can be specified. Please let me know if I should provide a solution for this too.

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.

1 participant