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

JSCore on iOS

Kenny Tang
October 27, 2015

JSCore on iOS

Lightning talk at Flipconf 2.0, Oct 2015.

Credits to @romaonthego for awesome code and inspiration.

Kenny Tang

October 27, 2015
Tweet

More Decks by Kenny Tang

Other Decks in Technology

Transcript

  1. loadRequest: to load a web page stringByEvaluatingJavaScriptFromString:
 @"alert('hello') to execute

    javascript runtime invokes callback methods on your 
 delegate class on link click events
  2. loadRequest: to load a web page stringByEvaluatingJavaScriptFromString:
 @"alert('hello') to execute

    javascript basis of hybrid apps and frameworks runtime invokes callback methods on your 
 delegate class on link click events
  3. WKWebview iOS 8 separate process message handlers w/ auto-serialization script

    injection on doc load start/end Nitro JS engine 3x faster Sunspider benchmarks Designed for displaying web content
  4. JSCore on iOS Safari’s nitro JS engine exposed as a

    framework No webviews needed, multi-threaded What makes React Native possible