Wraithi Posted July 9, 2015 Share Posted July 9, 2015 Hi, can anyone advise me how to solve this issue? New beta version of CocoonJS (www.cocoon.io) uses Cordova plugins. It is therefore important starts panda.js after deviceready event.Panda.js starts automatically before the deviceready event. Any idea how I can force panda.js starts after this event? (I use panda.js 1.13.1) https://cordova.apache.org/docs/en/4.0.0/cordova_events_events.md.html#deviceready Quote Link to comment Share on other sites More sharing options...
sbat Posted July 9, 2015 Share Posted July 9, 2015 I have zero experience with Panda.js . But if it really does not have explicit init function, nothing stops you from dynamically loading any scripts after device ready event. Quick googling suggests there are no issues with creating SCRIPT tags at runtime under Cordova:https://arvinbadiola.wordpress.com/2014/08/16/dynamically-loading-stylesheets-and-scripts-in-cordova-with-ember-js/ Quote Link to comment Share on other sites More sharing options...
Wraithi Posted July 18, 2015 Author Share Posted July 18, 2015 I have zero experience with Panda.js . But if it really does not have explicit init function, nothing stops you from dynamically loading any scripts after device ready event. Quick googling suggests there are no issues with creating SCRIPT tags at runtime under Cordova:https://arvinbadiola.wordpress.com/2014/08/16/dynamically-loading-stylesheets-and-scripts-in-cordova-with-ember-js/ Thank you for your response. This could be a way, but Phaser has built-in function that solves this. I am seeking a similar solution for Panda.js. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.