Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Sometimes loadSprite and loadSound are not able to load the data #700

Open
jamtechdev opened this issue Apr 4, 2023 · 3 comments
Open

Comments

@jamtechdev
Copy link

I found that sometimes these functions loadSprite and loadSound are not able to load the content and show an Error message like xyz.png not found but after doing a hard refresh it starts working.

@slmjkdbtl
Copy link
Contributor

Hi! So it only happens sometimes and cannot be reliably reproduced? Does soft refresh fix it or only hard refresh does?

@jamtechdev
Copy link
Author

Hello, it happen sometimes:
cases :
1- When I add a new object, make significant changes in code, or host the code on the server.
2- It fixed after hard refresh one or multiple times.

@slmjkdbtl
Copy link
Contributor

Any chance the sprite is used before loadSprite() is called? If so that error will come up

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants