Can someone explain to me what is so special about EmberJS Fastboot?

There EmberJS

's a Fastboot

lot of noise and I read about it here .

However, I didn't get the whole idea:

  • What does it mean to "load JavaScript applications on the service"?
  • Why do this?

I have no experience writing web applications. However, I know that the server side handles requests from the client by sending a JSON response (for example). The client then takes it and basically wraps it in HTML and CSS.

So why do I need boot

my JavaScript application?

Thank.

+3


source to share


1 answer


FastBoot means that all client-side logic used to consume JSON (or any other) from the API will also run on the server, so that on the first load the client will have the page already rendered, rather than a delay for rendering on the client. The data and rendering will then be passed to the client.

Its a modified version of the client running alongside the API server, consuming the same API as the browser client, is used to improve client side attachment. It will also serve proper sites for non-JavaScript clients like some web crawlers, curls, etc.



It may sound like a hassle to support two clients, but their goal is to make it nearly painless for most applications.

You can listen to Tom Dale and Yehuda Katz on a recent podcast explaining this in more detail if you like.

+8


source







All Articles