-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Fix validation errors on homepage #4481
Fix validation errors on homepage #4481
Conversation
87e9dc9
to
bad6a2f
Compare
@jdlrobson please test these changes because on local env I was getting "Unable to render this page" error |
@jdlrobson I have made few changes based on your suggestions, and this seems to work |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thoughts?
@jdlrobson What about if we set the img_attr to src by default and a single if statement for lazy type:
Will this work? |
ec3af0d
to
6ccc59a
Compare
@jdlrobson I tested this locally, and its shows 0 validation errors. |
A 1px by 1px base64 encoded thumbnail is used for covers that will be lazy loaded as a placeholder. The data-src attribute points to the real cover and is only added when necessary. This resolves HTML validation issues on the home page. Fixes: internetarchive#4481
A 1px by 1px base64 encoded thumbnail is used for covers that will be lazy loaded as a placeholder. The data-src attribute points to the real cover and is only added when necessary. This resolves HTML validation issues on the home page. Fixes: internetarchive#4481
A 1px by 1px base64 encoded thumbnail is used for covers that will be lazy loaded as a placeholder. The data-src attribute points to the real cover and is only added when necessary. This resolves HTML validation issues on the home page. Fixes: internetarchive#4481
A 1px by 1px base64 encoded thumbnail is used for covers that will be lazy loaded as a placeholder. The data-src attribute points to the real cover and is only added when necessary. This resolves HTML validation issues on the home page. Fixes: internetarchive#4481
A 1px by 1px base64 encoded thumbnail is used for covers that will be lazy loaded as a placeholder. The data-src attribute points to the real cover and is only added when necessary. This resolves HTML validation issues on the home page. Fixes: internetarchive#4481
A 1px by 1px base64 encoded thumbnail is used for covers that will be lazy loaded as a placeholder. The data-src attribute points to the real cover and is only added when necessary. This resolves HTML validation issues on the home page. Fixes: internetarchive#4481
Closes #4441
@jdlrobson, I don't know why it's not working on the local env. Can you please review and guide me what all changes do I need to make?
Stakeholders
@jdlrobson