Feature Request: Native Image src Fallback for SEO and Accessibility
-
Hi Armin,
I'm currently building a new professional design portfolio using Lay Theme, with a particular focus on technical SEO, accessibility and content discoverability across traditional search engines and AI-powered search platforms.
During the technical validation of my staging environment, I identified the following image-loading behaviour:
- The original HTML contains a Base64 placeholder in the
srcattribute. - The actual image URLs are provided through
data-srcset. - After JavaScript execution,
srcsetis populated correctly, butsrcremains a Base64 placeholder. - With JavaScript disabled, the images are not displayed.
- Disabling Lay Theme's lazy loading does not resolve this behaviour.
I understand the performance considerations behind this implementation. However, Google's official image SEO guidelines recommend providing a valid image URL in the
srcattribute, even when responsive images usesrcset.https://developers.google.com/search/docs/appearance/google-images
Would it be possible to introduce an optional image-loading mode that provides a valid
srcfallback, ideally using native browser lazy loading?Alternatively, is there a supported PHP hook or filter that would allow me to implement this behaviour through a custom WordPress plugin, without modifying Lay Theme's core files?
I would like to preserve the Gridder, responsive image functionality, Custom Phone Layouts and compatibility with future theme updates.
Thank you for your work on Lay Theme. Its creative flexibility is precisely why I chose it for this project.
Best regards,
João Loureiro
https://joaoloureiro.com - The original HTML contains a Base64 placeholder in the
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login