Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Fast Not Furious - NativeScript Mobile Apps Performance w/Webpack

Fast Not Furious - NativeScript Mobile Apps Performance w/Webpack

A summary of best practices to guarantee best performance at startup, using webpack for code splitting, V8 Heap Snapshot for android, AOT for lazy loading routes in NgApps, and web workers to offload and pre-process resources consuming operations, especially when battery power is low, so the perception of the UI operational state is undisturbed.

Natalia Venditto

April 12, 2019
Tweet

More Decks by Natalia Venditto

Other Decks in Technology

Transcript

  1. Cold Start Hot Start 141ms 102ms 517ms 411ms 694ms 589ms

    iOS Results per release type native NS TsApp NS NgApp ~approx. X2 in Android
  2. UI Thread const w = new Worker(‘path’); w.postmessage => w.onmessage

    => w.terminate(); Worker Thread global.onmessage = function(msg) { console.log("Insi de worker..."); global.postMessag e("Hello from worker"); }