Image addresses are filled in by a script
Some images have their address only in data-src or srcset, so bots and tools that do not run scripts see no picture.
Why it matters #
Google finds images in the src attribute of the <img> element. Older lazy-loading scripts put the real address in data-src and fill in src later with JavaScript, so crawlers and AI tools that do not run scripts see only an empty or placeholder image.
Google also says some browsers and crawlers do not understand srcset, and asks for a fallback address in src.
How to fix it #
Use the browser's own lazy loading instead: <img src="photo.jpg" loading="lazy" width="800" height="600" alt="...">. No script is needed. Where you use srcset, also give a src with one of the sizes.
On WordPress, turn off the lazy-loading feature of old optimisation plugins, because WordPress adds loading="lazy" itself. Check with the Image SEO Checker.
What it looks like, and fixed #
<img class="lazyload" src="data:image/gif;base64,R0lGODlhAQABAAAAACw="
data-src="/images/oak-bench.jpg" alt="Oak garden bench">
The real address is only in data-src. Without the script, crawlers see a blank placeholder.
<img src="/images/oak-bench.jpg" loading="lazy" width="800" height="600" alt="Oak garden bench">
The browser's own lazy loading keeps the real address in src, with no script needed.
Fix it with your AI assistant #
Paste this into ChatGPT, Claude, Gemini or your coding agent. Fill in the words in [square brackets] first. It checks before it changes anything, changes only this, and tells you how to prove it worked.
Help me make the images on [the page address] of [your website address] visible without JavaScript. It uses [your platform, e.g. WordPress with an optimisation plugin]. A checker says some images keep their real address only in data-src or srcset, so bots and tools that do not run scripts see no picture. First, read the page source as served (or ask me to paste it) and list each <img> whose src is empty or a placeholder, with its data-src and srcset values. Tell me which script or plugin is doing this. Then give me the fix: put the real address in src, use the browser's own loading="lazy" instead of the script, and give every srcset a src fallback. Rules: back up first, keep the same files, alt text and sizes, keep the first picture without lazy loading, and keep the plugin's other features. Give exact code or settings and where they go. Finally, tell me to re-check with the URSY.com Image SEO Checker at ursy.com/image-seo-checker/.
We find the problems, and help you fix them
- Check Run a free tool or the full audit.
- Fix it with your AI Download your AI Fix Pack and drop it into ChatGPT, Claude or Gemini. A free account is enough.
- Re-check Come back, check again, and watch each fix turn green.
Fix it on your platform #
WordPress
Turn off the lazy-loading feature of old optimisation plugins, because WordPress adds loading="lazy" itself.
Shopify
Some older themes use a lazy-loading script with data-src. Updating the theme, or using the image_tag filter with loading: "lazy", puts the address back in src.
A hand-made site
Replace data-src with src and add loading="lazy". Where you use srcset, also give a src with one of the sizes.
Check it is fixed #
Run the Image SEO Checker again: no image should have its address only in data-src. The JavaScript SEO Checker should see the pictures in the served HTML.
Official source #
Questions #
Does Google not run the script anyway?
Google can, but it finds images most reliably in the src attribute. Many other crawlers and AI tools do not run scripts at all.
Will native lazy loading still save data?
Yes. Current browsers support loading="lazy" and wait until a picture is near the screen, just as the script did.
More problems in Images and media
- Images do not load High priority
- Images are too heavy Medium priority
- Images have no alt text Medium priority
- Images have no width and height Medium priority
- robots.txt blocks images from Google Medium priority
- The main image is told to load late Medium priority
- The alt text says little about the picture Low priority