Code Monkey home page Code Monkey logo

Comments (4)

pauloya avatar pauloya commented on August 14, 2024

We're having problems with this, some of the 3rd party scripts on the website can take a while to load, and this is delaying the "load" event which delays the "deviceReady" and therefore delays the whole page from rendering.
I think the best solution would be to allow the page JS to trigger the loading of the cordova scripts injection.

from manifoldcordova.

boyofgreen avatar boyofgreen commented on August 14, 2024

Hey Pauloya, the problem we run into is with the calling of script injection before the plugins finish loading can be problematic. Are you loading the scripts from the package or the server?

from manifoldcordova.

pauloya avatar pauloya commented on August 14, 2024

Hi, we have plugin mode: client. For me this is THE magic of this plugin!
Server side loading of cordova scripts is something I could do without needing a plugin.

I guess my proposal of triggering things from JS won't work, because the native-webcontroller bridge needs to be built from native side and JS can't communicate with native until the bridge is there.

I can see your problem of needing to wait for all plugins to be ready on the native side, is there an event available signaling all plugins are ready? And if all you do is wait for webview.DidFinishLoad event, how can you guarantee plugins will be ready by then?

from manifoldcordova.

lesteenman avatar lesteenman commented on August 14, 2024

Any update on this? A way to detect when plugins are loaded would still be very useful.

from manifoldcordova.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.