Skip to content

Conversation

@seagullua
Copy link
Contributor

We have noticed that the current body check does not work properly all the times. We have replaced it with jQuery inspired check which will wait until document.body can be accessed.


_determineRenderType(config);

document.body ? _load(config) : cc._addEventListener(window, 'load', _windowLoaded, false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will wait for body to be loaded if it's not

@pandamicro
Copy link
Contributor

Can you provide a step by step instruction to reproduce the issue ? Normally, if document.body can't be accessed, it will wait until window.load, I believe body should be accessible by then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants