USE CASE OF JS ON NETFLIX

USE CASE OF JS ON NETFLIX

WHAT IS JAVASCRIPT:

JavaScript?is a lightweight, interpreted?programming?language. It is designed for creating network-centric applications. It is complementary to and integrated with Java.?JavaScript?is very easy to implement because it is integrated with HTML. It is open and cross-platform.

No alt text provided for this image


Applications of Javascript Programming

Javascript?is one of the most widely used?programming languages?(Front-end as well as Back-end). It has its presence in almost every area of software development. I'm going to list a few of them here:

  • Client-side validation?- This is important to verify any user input before submitting it to the server. Javascript plays an important role in validating those inputs at the front-end itself.
  • Manipulating HTML Pages?- Javascript helps in manipulating HTML page on the fly. This helps in adding and deleting any HTML tag very easily using javascript and modify your HTML to change its look and feel based on different devices and requirements.
  • User Notifications?- You can use Javascript to raise dynamic pop-ups on the web pages to give different types of notifications to your website visitors.
  • Back-end Data Loading?- Javascript provides Ajax library, which helps load back-end data while you are doing some other processing. This gives an amazing experience to your website visitors.
  • Presentations?- JavaScript also provides the facility of creating presentations that give the website a look and feel. JavaScript provides RevealJS and BespokeJS libraries to build a web-based slide presentation.
  • Server Applications?- Node JS is built on Chrome's Javascript runtime for building fast and scalable network applications. This is an event-based library that helps in developing very sophisticated server applications including Web Servers.

WHAT IS NETFLIX

Netflix?is one of the most popular video streaming services. Since launching globally in 2016, the company has found that many new users are not only signing up on mobile devices but are also using less-than-ideal connections to do so.

  • Loading and Time-to-Interactive decreased by 50% (for the logged-out desktop homepage at Netflix.com)
  • JavaScript bundle size reduced by 200kB by switching from React and other client-side libraries to vanilla JavaScript. React was still used server-side.
  • By refining the JavaScript used for Netflix.com’s sign-up process and using prefetching techniques, the developer team was able to provide a better user experience for both mobile and desktop users and offer several improvements.

Netflix is now among companies using Node.JS due to the following reasons:

  • A common language both for the server-side and browser side.
  • High performance — now the page loads within seconds.
  • A great number of modules and their open-source nature.
  • An easy way of writing, debugging and engineering the API.

By using both the built-in browser API and XHR to prefetch HTML, CSS, and JS, the Time-to-Interactive was reduced by 25%.

CONCLUSION:

Over the last decade, JavaScript has become the most popular language for web app development, mobile application development and many more. This happened because of early adoption by tech giants like Netflix, Here we try to explain the briefcase study of javascript on Netflix. To improve time to interactive, javascript come in the role, Every page working dynamically using js. That’s why the company decided to leverage the lightweight and fast Node.js.


Thank You !!!



要查看或添加评论,请登录

社区洞察

其他会员也浏览了