MIT Polaris AI Algorithm Reduces Web Page Load Times By Up To 34 Percent

It's been a long time since webpages consisted of simple text. Today's webpages are far more complex with audio, video, fancy graphics, JavaScript, and everything else that goes into making an enticing portal. Browser makers have done an overall good job of keeping up with the times, but researchers at MIT's Computer Science and Artificial Intelligence Laboratory (CSAIL) say they've come up with a way to turbo charge page load times by 34 percent.

Their framework for faster load times is called "Polaris," not to be confused with AMD's forthcoming GPU architecture (they're two completely separate things). What MIT has done is developed a method of mapping out the elements that comprise a webpage so that browsers can more efficiently pull and load the necessary objects that translate into all those visual elements you see.

Browsing the Web

Let's back up a moment. When you type the address of a webpage, the browser fetches objects from the destination, including HTML files, JavaScript code, images, and so forth. Those objects are then added to the page that you see, though loading them all is a bit more complex. When a browser evaluates an object, it may discover that it has to fetch and evaluate more objects, which are called dependencies.

"The problem is that browsers can’t actually see all of these dependencies because of the way that objects are represented by HTML (the standard format for expressing a webpage’s structure). As a result, browsers have to be conservative about the order in which they load objects, which tends to increase the number of cross-network trips and slow down the page load," the researchers explain.

This is where Polaris comes into play. Polaris automatically tracks all of the interactions between objects and creates a dependency graph for the page. Using that graph, a browser can more efficiently fetch and render the content that makes up a webpage.

Mobile Browsing

James Mickens, a Harvard professor who began working on the project as a visiting professor at MIT in 2014, offers up an example of a traveling businessman. When the businessman visits a city, he might discover more cities that he has to visit before going home. If someone gave him a list of cities beforehand, he could map out the fastest possible route instead of zigzagging his way across the land based on his own discovery.

"For a Web browser, loading all of a page’s objects is like visiting all of the cities," Mickens says. "Polaris effectively gives you a list of all the cities before your trip actually begins. It’s what allows the browser to load a webpage more quickly."

This is a big deal because modern webpages can use thousands of JavaScript-heavy objects, resulting in slower page renders. According to the researchers, Amazon estimates that every 100-millisecond delay in browsing cuts its profits by 1 percent. And with mobile web browsing taking over, speed gains are more important than ever.

Via:  MIT
Show comments blog comments powered by Disqus