BUG: img srcset 404 causes infinite request loop
Question
GrapesJS version
- I confirm to use the latest version of GrapesJS
What browser are you using?
Chrome v131
Reproducible 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.
What is the expected behavior?
img is not requested again after the first 404, and ideally shows same fallback as when there is a broken src
<div id="gjs">
<img srcset='https://dsfdsfsdfdfsdf.com/brokeimg.png'/>
</div>
const editor = grapesjs.init({
container: '#gjs',
fromElement: 1,
height: '100%',
storageManager: { type: 0 },
});
Code of Conduct
- I agree to follow this project's Code of Conduct
Answers (0)
No answers yet.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #4323
BUG: Performance issue while dragging component to canvas when you have 2k component on canvas
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Google Chrome Version 101.0.4951.41 (Officia...
Issue #6458
BUG: sector.setName doesn't work
GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Reproducible demo link https://jsfi...
Issue #5990
BUG: When you delete a component, duplicate classes between components will be deleted.
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome 126.0.6478.127(Windows) Reproducibl...
Issue #4015
BUG: Drag and drop not working well in case of RTL
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v96 Reproducible demo link https://...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.