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

srcset needed on featured image #979

Open
tjhdesign opened this issue May 27, 2022 · 0 comments
Open

srcset needed on featured image #979

tjhdesign opened this issue May 27, 2022 · 0 comments

Comments

@tjhdesign
Copy link

Hi - amazing theme! One thing that would be a big help/fix is to have a proper srcset on the featured image on posts.

As it stands, Hueman loads the highest resolution possible, up to 1,320px, no matter what. I realize this was a fix for a previous issue (#866), but now page speed on mobile devices is needlessly slowed with an unnecessary high-res download.

So, instead of how it currently handles the image...

<div class="image-container">
  <img src="image.jpg" alt="Image" width="1320" height="500">
</div>

... could we have something like this?

<div class="image-container">
  <img alt="Image" width="1320" height="500" srcset="image-1320w.jpg 1320w, image-1024w.jpg 1024w" src="image-1320w.jpg">
</div>

Thanks!

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

No branches or pull requests

1 participant