Isomorphic JavaScript

from Wikipedia, the free encyclopedia

Isomorphic JavaScript , also known as Universal JavaScript , describes JavaScript applications that run on both the client and the server .

mechanism

Isomorphic JavaScript is used in connection with single-page applications (SPA). In a typical SPA, most of the business logic, including routing , is bundled into a JavaScript file that is sent to the client. Although this takes the load off the server, as it does not have to process several requests, it makes the start slower for the user, since the entire web application has to be sent to the client.

With isomorphic JavaScript, the view of the page on the server is calculated on the first request from the client, similar to server-side websites , and then sent to the client. This allows the client to render the view immediately. After the start view has been generated, the entire SPA is downloaded in the background and subsequent actions are processed on the client side.

Surname

The origin of the name 'Isomorphic JavaScript' is controversial. The term 'isomorphic' was first coined by Charlie Robbins of Nodejitsu in one of the company's blog posts. Spike Brehm, an Airbnb software developer , used the same term in another blog post. Regardless of this, others have suggested using the term 'Universal JavaScript' instead.

advantages

There are several advantages to using isomorphic JavaScript:

Frameworks

Several frameworks for isomorphic JavaScript have been created, especially Meteor and React . Others are:

Individual evidence

  1. Is "Isomorphic JavaScript" a good term? . Retrieved June 15, 2017.
  2. Nodejitsu Inc .: Scaling Isomorphic Javascript Code | Nodejitsu Inc. . Retrieved June 15, 2017.
  3. AirbnbEng: Isomorphic JavaScript: The Future of Web Apps . November 11, 2013. Retrieved June 15, 2017.
  4. Michael Jackson: Universal JavaScript . June 8, 2015. Retrieved June 15, 2017.