That is quite the way I imagined, except I couldn't find the exact way to invoke external scripts via JS.
You can avoid getting the delay by moving the nativeBridge code outside of function custom_init, thus making it execute sooner (and hopefully, neither too late or too soon).
|