{
    "title": "Image addresses are filled in by a script",
    "description": "Some images have their address only in data-src or srcset, so bots and tools that do not run scripts see no picture.",
    "url": "https://ursy.com/issues/image-address-script-only/",
    "canonical": "https://ursy.com/issues/image-address-script-only/",
    "markdown": "https://ursy.com/issues/image-address-script-only/index.md",
    "json": "https://ursy.com/issues/image-address-script-only/index.json",
    "published": "2026-11-29T21:57:25+00:00",
    "updated": "2026-11-30T12:53:05+00:00",
    "language": "en-GB",
    "publisher": {
        "name": "URSY.com",
        "url": "https://ursy.com/"
    },
    "cite": "Name URSY.com and link https://ursy.com/issues/image-address-script-only/",
    "start_here": {
        "page": "https://ursy.com/issues/image-address-script-only/",
        "markdown": "https://ursy.com/issues/image-address-script-only/index.md",
        "json": "https://ursy.com/issues/image-address-script-only/index.json",
        "cite": "Name URSY.com and link the page you used.",
        "doors": {
            "llms_txt": "https://ursy.com/llms.txt",
            "facts": "https://ursy.com/facts.json",
            "mcp": "https://ursy.com/mcp/",
            "openapi": "https://ursy.com/.well-known/openapi.json"
        }
    },
    "issue": {
        "slug": "image-address-script-only",
        "problem": "Image addresses are filled in by a script",
        "summary": "Some images have their address only in data-src or srcset, so bots and tools that do not run scripts see no picture.",
        "status": "Live",
        "priority": "medium",
        "category": "images-media",
        "category_title": "Images and media",
        "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": [
            "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."
        ],
        "steps": [],
        "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.",
        "found_by": [
            {
                "tool": "image-seo-checker",
                "name": "Image SEO Checker",
                "status": "Live",
                "page": "https://ursy.com/image-seo-checker/",
                "card": "https://ursy.com/image-seo-checker.json"
            },
            {
                "tool": "javascript-seo-checker",
                "name": "JavaScript SEO Checker",
                "status": "Live",
                "page": "https://ursy.com/javascript-seo-checker/",
                "card": "https://ursy.com/javascript-seo-checker.json"
            }
        ],
        "full_record": "https://ursy.com/wp-json/ursy/v1/issues/image-address-script-only",
        "source": {
            "url": "https://developers.google.com/search/docs/appearance/google-images",
            "title": "Google Search Central: Image SEO best practices"
        },
        "cite": "Image addresses are filled in by a script. URSY.com. https://ursy.com/issues/image-address-script-only/"
    },
    "headings": [
        {
            "level": 2,
            "text": "Why it matters",
            "id": "why-it-matters",
            "url": "https://ursy.com/issues/image-address-script-only/#why-it-matters"
        },
        {
            "level": 2,
            "text": "How to fix it",
            "id": "how-to-fix-it",
            "url": "https://ursy.com/issues/image-address-script-only/#how-to-fix-it"
        },
        {
            "level": 3,
            "text": "What the problem looks like",
            "id": "what-the-problem-looks-like",
            "url": "https://ursy.com/issues/image-address-script-only/#what-the-problem-looks-like"
        },
        {
            "level": 3,
            "text": "What it looks like fixed",
            "id": "what-it-looks-like-fixed",
            "url": "https://ursy.com/issues/image-address-script-only/#what-it-looks-like-fixed"
        },
        {
            "level": 2,
            "text": "Fix it with your AI assistant",
            "id": "fix-it-with-your-ai-assistant",
            "url": "https://ursy.com/issues/image-address-script-only/#fix-it-with-your-ai-assistant"
        },
        {
            "level": 2,
            "text": "Fix it on your platform",
            "id": "fix-it-on-your-platform",
            "url": "https://ursy.com/issues/image-address-script-only/#fix-it-on-your-platform"
        },
        {
            "level": 3,
            "text": "WordPress",
            "id": "wordpress",
            "url": "https://ursy.com/issues/image-address-script-only/#wordpress"
        },
        {
            "level": 3,
            "text": "Shopify",
            "id": "shopify",
            "url": "https://ursy.com/issues/image-address-script-only/#shopify"
        },
        {
            "level": 3,
            "text": "A hand-made site",
            "id": "a-hand-made-site",
            "url": "https://ursy.com/issues/image-address-script-only/#a-hand-made-site"
        },
        {
            "level": 2,
            "text": "Check it is fixed",
            "id": "check-it-is-fixed",
            "url": "https://ursy.com/issues/image-address-script-only/#check-it-is-fixed"
        },
        {
            "level": 2,
            "text": "Official source",
            "id": "official-source",
            "url": "https://ursy.com/issues/image-address-script-only/#official-source"
        },
        {
            "level": 2,
            "text": "Questions",
            "id": "questions",
            "url": "https://ursy.com/issues/image-address-script-only/#questions"
        },
        {
            "level": 3,
            "text": "Does Google not run the script anyway?",
            "id": "does-google-not-run-the-script-anyway",
            "url": "https://ursy.com/issues/image-address-script-only/#does-google-not-run-the-script-anyway"
        },
        {
            "level": 3,
            "text": "Will native lazy loading still save data?",
            "id": "will-native-lazy-loading-still-save-data",
            "url": "https://ursy.com/issues/image-address-script-only/#will-native-lazy-loading-still-save-data"
        }
    ],
    "links": [
        {
            "text": "srcset",
            "url": "https://ursy.com/wiki/srcset/",
            "internal": true
        },
        {
            "text": "bots",
            "url": "https://ursy.com/wiki/bot-web-robot/",
            "internal": true
        },
        {
            "text": "Google",
            "url": "https://ursy.com/wiki/google/",
            "internal": true
        },
        {
            "text": "lazy loading",
            "url": "https://ursy.com/wiki/lazy-loading/",
            "internal": true
        },
        {
            "text": "Image SEO",
            "url": "https://ursy.com/wiki/image-seo/",
            "internal": true
        },
        {
            "text": "ChatGPT",
            "url": "https://ursy.com/wiki/chatgpt/",
            "internal": true
        },
        {
            "text": "SEO",
            "url": "https://ursy.com/wiki/seo-search-engine-optimisation/",
            "internal": true
        },
        {
            "text": "JavaScript SEO",
            "url": "https://ursy.com/wiki/javascript-seo/",
            "internal": true
        },
        {
            "text": "HTML",
            "url": "https://ursy.com/wiki/html/",
            "internal": true
        },
        {
            "text": "Google Search Central: Image SEO best practices",
            "url": "https://developers.google.com/search/docs/appearance/google-images",
            "internal": false
        }
    ],
    "words": 585,
    "text": "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 the problem looks like <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. What it looks like fixed <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, and fill in the words in square brackets: 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/. 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 Google Search Central: Image SEO best practices 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.",
    "source": "https://ursy.com/issues/image-address-script-only/"
}