- المُؤرشفة
Iframe doesn't load small images with srcset the first time
Hello, We have a solution to display a property sale detail in iframe. The first time it's displayed only the not small images or without srcset. Points of note: - The … (read more)
Hello,
We have a solution to display a property sale detail in iframe. The first time it's displayed only the not small images or without srcset.
Points of note: - The iframe is resized by javascript to take the height of the content height at loading. - Most images are defined with a srcset.
It's seems the browser begin to download 480px images as it should and the height resizing of the iframe cancel the requests (NS_BINDING_ABORTED) and it request the image in the attribute src but does not use it. The image preview in the inspector also display "Unable to load".
Refreshing the page display the images (with or without cache), you need to restart Firefox to have the issue with the same images. It's work correctly under Chrome.
Here an example https://test-agpwrapper.agence-plus.com/agpwrapper?k=cPZw_2neX-c At the end you have photo 3, photo 4, and photo 5 instead of the images, it's displayed if you refresh the page.
Thanks you for your support.