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

Add srcset attribute to img tag #190

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

Conversation

phaneendraandukuri
Copy link
Contributor

Added srcset attribute to the img tag to avoid Properly Size Images error in pagespeed insights

Ticket Reference: https://github.com/quintype/ace-planning/issues/469

Comment on lines +36 to +38
srcSet: `https://${imageCDN}/${image.path(aspectRatio, imgParams)}&w=320 320w,
https://${imageCDN}/${image.path(aspectRatio, imgParams)}&w=640 640w,
https://${imageCDN}/${image.path(aspectRatio, imgParams)}&w=1024 1024w,`,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we take this width value from props?

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