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

FastBoot™ and Beyond

Godfrey Chan
September 29, 2015

FastBoot™ and Beyond

Godfrey Chan

September 29, 2015
Tweet

More Decks by Godfrey Chan

Other Decks in Programming

Transcript

  1. ☁ Web Server 200 OK <html> <head> <title>Ember 2.0…</title> </head>

    <body> <article>…</article> </body> </html>
  2. Load Ember Boot Worker Boot App Render Destroy Worker GET

    /posts/123-ember-2-0-… 200 OK <html> <head> <title>Ember 2.0…</title> </head> <body> <article>…</article> </body> </html>
  3. Load Ember Boot Worker Boot App Render App.reset() GET /posts/123-ember-2-0-…

    200 OK <html> <head> <title>Ember 2.0…</title> </head> <body> <article>…</article> </body> </html>
  4. 200 OK <html> <head> <title>Ember 2.0…</title> </head> <body> <article>…</article> </body>

    </html> Render 200 OK <html> <head> <title>Ember 2.0…</title> </head> <body> <article>…</article> </body> </html> GET /posts/123-ember-2-0-… Boot Worker Render instance.destroy() GET /posts/123-ember-2-0-… Boot Instance instance.destroy( Load Ember Boot Instance
  5. import MyApp from 'my-app'; $(function() { let App = MyApp.create({

    autoboot: false }); App.visit('/demo', { location: 'none', rootElement: '#demo' }); }); For Your Eyes Only
  6. import MyApp from 'my-app'; $(function() { let App = MyApp.create({

    autoboot: false }); let sessionId = MyApp.generateSessionID(); App.visit(`/matches/join/${sessionId}`, { rootElement: '#left' }); App.visit(`/matches/join/${sessionId}`, { rootElement: '#right' }); }); For Your Eyes Only