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 loading="lazy" to <img> tag #3145

Open
just1602 opened this issue Mar 15, 2023 · 2 comments
Open

Add loading="lazy" to <img> tag #3145

just1602 opened this issue Mar 15, 2023 · 2 comments

Comments

@just1602
Copy link
Collaborator

We can use it in the home page, but in the article and other place like that, we could use loading="lazy" on image tag to make page load even faster.

@veganstraightedge
Copy link
Contributor

Great idea!

We'll need to do that in a combination of two places:

  • on any image_tag methods in this repo
  • on img generation in our media_markdown gem

@just1602
Copy link
Collaborator Author

just1602 commented Apr 9, 2023

I'd do it in media markdown first, but I'd wait for the new design for doing it in the design, tho. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants