# Image load issue

**URL:** <https://phaser.discourse.group/t/image-load-issue/15412>\
**Category:** Phaser 3\
**Created:** [July 11, 2025, 2:07pm UTC](https://phaser.discourse.group/t/image-load-issue/15412 "2025-07-11T14:07:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ngivoni](https://avatars.discourse-cdn.com/v4/letter/n/bb73d2/32.png) [@ngivoni](https://phaser.discourse.group/u/ngivoni)\
**Post date:** [July 11, 2025, 2:07pm UTC](https://phaser.discourse.group/t/image-load-issue/15412/1 "2025-07-11T14:07:52Z")

</div>

We’re running into an issue when we load an image in the dom and use that same image within the Phaser game. The image errors out and doesn’t load.

The issue is that the image is already in cache and Phaser script used to load that image doesn’t take this into account.

I’d like to know if there’s a patch/fix available.

Thanks

 ![2025-07-10_17-11-47](https://global.discourse-cdn.com/free1/uploads/phaser1/original/2X/9/9aead8054c36718352f752b462aaf9ab2e652f42.png)

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [July 11, 2025, 2:11pm UTC](https://phaser.discourse.group/t/image-load-issue/15412/2 "2025-07-11T14:11:11Z")

</div>

How are you loading and displaying the image (code)? What error are you seeing? What makes you suspect the browser cache is causing the problem?

---

<div class="post-metadata">

**Author:** ![ngivoni](https://avatars.discourse-cdn.com/v4/letter/n/bb73d2/32.png) [@ngivoni](https://phaser.discourse.group/u/ngivoni)\
**Post date:** [July 11, 2025, 6:37pm UTC](https://phaser.discourse.group/t/image-load-issue/15412/3 "2025-07-11T18:37:46Z")

</div>

The images in phaser are being passed into the code and using the onload process. I can see that the XMLHttpRequest (XHR) request is failing to load due to the fact that the browser has already loaded the file in the image tag.

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [July 11, 2025, 7:03pm UTC](https://phaser.discourse.group/t/image-load-issue/15412/4 "2025-07-11T19:03:01Z")

</div>

What code are you using in Phaser? What errors are you seeing in the console or Network Activity?
