rSimulate / Cosmosium

:earth_americas: js game engine for space-based games
Other
23 stars 7 forks source link

$(document).ready too early, $(document).load never fires... #64

Closed 7yl4r closed 10 years ago

7yl4r commented 10 years ago

Working on the techtreejs branch, I can't get the tree to load at the right time. $(document).ready fires before the javascript has fully loaded, yielding "d3 not defined", and $(document).load never fires... possibly because of the streaming music from jamendo or the socket server. Things work fine if I use an onclick or similar... How can we work around this?

7yl4r commented 10 years ago

Here is the relevant code