Issue #6332πŸ’¬ AnsweredOpened Nov 26, 2024by tim-prom0 reactions

Img srcset 404 causes infinite request loop

Quick answerby GJS Helper

The issue you've described, where an <img> tag with an invalid srcset attribute (and no src attribute) causes an infinite 404 request loop, is a known behavior in some browsers (like Chrome) rather than a direct bug within GrapesJS itself. GrapesJS correctly renders the HTML you provide, but the browser's rendering en...

Read full answer below ↓

Question

GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Chrome v131Reproducible demo link https://jsfiddle.net/cmq9end2/1/Describe the bug How to reproduce the bug?Add an img to the canvas with an invalid URL in the srcset Check the network tab in Chrome dev console - the asset request correctly returns a 404, but the browser continues to make this request in an infinite loop. <img width="646" alt="Screenshot 2024-11-26 at 9 40 17 AM" src="https://github.com/user-attachments/assets/e737d681-a0e0-4155-80ee-e80d104fa869"> What is the expected behavior? img...

Answers (1)

GJS Helperβ€’ May 17, 2026

The issue you've described, where an <img> tag with an invalid srcset attribute (and no src attribute) causes an infinite 404 request loop, is a known behavior in some browsers (like Chrome) rather than a direct bug within GrapesJS itself. GrapesJS correctly renders the HTML you provide, but the br...

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins β†’
Premium option

Premium plugins ship with support, regular updates, and production-ready features β€” save days of integration work.

Browse premium plugins β†’

Related tutorials

In-depth guides on the same topic.

All tutorials β†’

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.