Facebook Has Announced Its First API Contribution To Google Chrome Browser

Dhir Acharya - Apr 25, 2019, 1:41 pm IST


The world leading social network Facebook has announced that it’s using API to help Google Chrome users browse faster and more smoothly

The world leading social network Facebook has announced that it’s using API to help Google Chrome users browse faster and more smoothly by reducing the time between a keystroke or a click and the response of the browser.

In computer programming, API (Application Programming Interface) is a set of procedures and functions supporting application creation. API then access data or features which are part of an app, operating system, or other services.

Kết quả hình ảnh cho Facebook announces its first browser API for Chrome

Chrome 74 will be the first to trial this new system. Particularly, the JavaScript engine of a browser deals with the way code is executed and the time it stops for a moment to detect any pending input events that it needs to react to. However, modern JavaScript engines are single-threaded which means they can do only one thing at a time.

As per the team explanation, to fix this problem, they break the JavaScript into smaller blocks. When the page is loading, they run JavaScript for a bit, then yield and give back the control to the browser. Then, the browser can check the queue of input events for anything it has to inform the page. The browser then goes back to running the blocks.

This process takes a lot of time, causing the page to load slower, but checking for inputs at slower intervals degrades user experience as makes the browser respond slower. So Facebook engineers made the isInputPending API to get rid of this trade-off.

Hình ảnh có liên quan

 “We are excited to share that the ‘Chrome 74’ release will include the origin trial for our ‘isInputPending’ API. We hope to take developer feedback from this trial and use it to make the case for fully shipping the API,” according to Facebook software engineers Andrew Comminos and Nate Schloss in a Monday blog post.

By contributing its own API to help improve the Chrome browser, Facebook has marked the new method to develop web standards at the firm. As in the post, now, the “isInputPending” API is part of Facebook’s larger effort in building scheduling primitives into the network.

The social giant would put its new API into trials on Chrome to test among developers who want to get rid of queuing delays as well as strengthen loading and interaction performance.  “We hope to continue driving new APIs and to ramp up our contributions to open source web browsers,” said Comminos and Schloss.

Next Story

Read More

Minecraft Is Now Home To 112 Million Monthly Active Users

Features- Sep 19, 2019, 8:00 am IST

Minecraft Is Now Home To 112 Million Monthly Active Users

The spectacular performance has established Minecraft’s dominant position over other similar game titles such as Fortnite or Roblox.

Keep Yourself Away From Prying Eyes Of Google Maps With New Incognito Mode

ICT News- Sep 20, 2019, 3:00 pm IST

Keep Yourself Away From Prying Eyes Of Google Maps With New Incognito Mode

Until now, we may have to wait for quite a while to experience Google Maps' Incognito Mode.

Scientists Came Up With A Feasible Plan For An Elevator Connecting The Moon And The Earth

Features- Sep 19, 2019, 1:30 pm IST

Scientists Came Up With A Feasible Plan For An Elevator Connecting The Moon And The Earth

In their paper in August, Zephyr Penoyre and Emily Sandson, two astrophysicists details a 322,000 kilometer-long elevator connecting the two planets

Google Fi’s New Unlimited Plan: Now Available In India

ICT News- Sep 19, 2019, 2:08 pm IST

Google Fi’s New Unlimited Plan: Now Available In India

In addition to the standard service, Google Fi has presented a new plan including unlimited data, texts, and calls for a fixed amount of money every month.

Google Allows Users To Search For Specific Moments In Videos

ICT News- Sep 18, 2019, 3:00 pm IST

Google Allows Users To Search For Specific Moments In Videos

It is no secret that over the last few years, Google has been looking for a way to upgrade its search function to make it work on more than just text result

iPhone 11 India Available For Pre-Orders From September 20, Flipkart Listing Reveals

Mobile- Sep 18, 2019, 1:00 pm IST

iPhone 11 India Available For Pre-Orders From September 20, Flipkart Listing Reveals

The new iPhone 11 smartphone series is set to be available for pre-order in India from 20th September onwards, according to a Flipkart listing.