From the course: Vanilla JavaScript: Web Performance Optimization APIs

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Summary of what we can do

Summary of what we can do - JavaScript Tutorial

From the course: Vanilla JavaScript: Web Performance Optimization APIs

Start my 1-month free trial

Summary of what we can do

- [Instructor] Let's see what we can do with client-side web performance APIs. First, we are going to cover a lot of APIs available in the browser. The information that we can get from those APIs sometimes can also be shared with our server. It can be shared automatically with a flag that we set somewhere in the browser, or it can be shared manually, such as sending that data using a fetch request or adding that data to HTTP headers manually on each fetch or using a service worker. As most of the APIs in the browser, compatibility is not the same on every version of every browser. So sometimes, we need to have fall backs to polyfills, other solutions, or even the stats. So if there is no way to gather some information from that user, at least we can get average stats from other user. Typically, today, we can measure all the timings for the current navigation. That means DNS, TCP connection, SSL, timings for HTTP request, and HTTP response for the main navigation documents through the…

Contents