When you say "fair amount of time" do you have any data on that? Before spending time on a solution I'd want to make sure there is actually a problem.
What does the delay look like in Chrome/Safari web tools? I'd try running an on various devices and seeing what the load times are for the JS on the different platforms. Simon Mac Donald http://hi.im/simonmacdonald On Thu, Dec 10, 2015 at 7:39 AM, Philipp Kursawe <[email protected]> wrote: > I am new to the list, and somewhat new to Cordova. > > I wonder why all plugins are loaded before "deviceready" is emitted? I > understand for plugins that extend the hosts "navigator" object to mimic > webbrowser functionality like location or sensors you might want to have > them guaranteed to be accessible via global objects on "navigator" once the > app has been loaded. > Was there ever an async/on demand approach considered? > Like "cordova.getPlugin("plugin.google.maps").then(maps) {}" > > I am asking because I would like to reduce the startup time. Loading the > webview already takes a lot of time. Loading all JS takes another fair > amount of time all the while cordova is busy loading all plugins. And I > don't need any of those plugins functionality right after startup. > > Happy coding, > Phil >
