Possible Bug in jsloader.js (Cocos2d-html5-v2.2)

Possible Bug in jsloader.js (Cocos2d-html5-v2.2)
0.0 0


Hi folks!

I’m developing my first Hello wold using the “Cocos2d-html5-v2.2” platform and I’ve noticed that the little spining image that shows us that the game is loading will never dissapear…

I started debuging until I found where is this being loaded, I had to tweek a little bit the code to remove that Loading Image when the game is loaded.

I did the following:

In the HTML5\cocos2d\platform\jsloader.js - Line 303


updateLoading(loaded / (que.length));


updateLoading(loaded / (que.length -1));

Sorry about my English, hope this helps anyone :wink:

Also, I’m not sure if this is the right place to put this, I just arrive the forum… Sorry if I misplace the message.


I have the same bug (cocos2d-html5 v2.2.2, Firefox 27.0.1).

Downloaded new jsloader.js from github, it was refactored.

drasier, thank you for your solution! :slight_smile:
Your fix was added at line 330, but still not at line 334, so fix works only in ie9.


Safary console shows error:
TypeError: ‘null’ is not an object (evaluating ‘loadJsImg.parentNode.removeChild’)