Coronavirus (COVID-19) information: Live classes available in-person or online from our fully vaccinated instructors. Learn more about our reopening.


New JavaScript engine coming to Chrome

  • Published on February 20, 2014
New JavaScript engine coming to Chrome

Hypertext Markup Language, more commonly known as HTML, is the primary language of the Web. If you want to learn how to write your own webpages, HTML training at the American Graphics Institute can help you master the fundamentals of this powerful markup language and begin creating your own websites from scratch. Of course, after a while, you might decide to bolster your coding knowledge by learning JavaScript, a dynamic programming language that is used to provide websites with greater functionality. Recently, Google announced that it would incorporate a new JavaScript engine to improve the speed of its Chrome Web browser, PC Pro reported.

Under the hood
Chrome is already one of the fastest browsers available, and performs consistently well in benchmarked speed tests. However, the engineers at Google aren't content with the browser's current performance, and have made substantial tweaks to Chrome's underlying JavaScript engine to reduce latency, or the time it takes for routine tasks to be completed. 

The way in which JavaScript code is read and executed by the browser lies at the heart of the new engine. In short, the new version of the V8 JavaScript engine will compile and execute code simultaneously, resulting in significant improvements to performance and speed.

"To reduce the overall time spent compiling, V8 defers compilation of JavaScript functions until immediately before they are executed the first time," Yang Guo, an engineer on the V8 project, wrote in an official blog post. "This compilation phase is fast but doesn't focus on optimizing the code, just on getting it done quickly. In V8, pieces of code that are executed very often are compiled a second time by a specialized optimizing compiler. This second compilation pass makes use of many advanced optimization techniques, meaning it takes more time than the first pass but delivers much faster code."

Significant potential
So, what does all this mean? Well, if you've ever spent minutes waiting for Chrome to respond on a mobile device, you'll probably be interested to learn that these improvements to the V8 engine mean that Chrome performs significantly better on Android smartphones. In fact, according to Guo, benchmark tests showed a speed increase of 27 percent during initial testing, meaning that pages will load much faster using the new concurrent compilation system.

Professionals in a wide range of roles, from marketing to sales, can benefit from understanding the language of the Web. If you're ready to embark upon your own journey to the heart of the Internet, taking HTML training at the American Graphics Institute is an excellent first step.

About the author

Christopher Smith is president of American Graphics Institute in Boston, Massachusetts. He is the publisher and editor of the Digital Classroom book series, which have sold more than one million copies. At American Graphics Institute, he provides strategic technology consulting to marketing professionals, publishers and to large technology companies including Google, Apple, Microsoft, and HP. An expert on web analytics and digital marketing, he delivers Google Analytics training along with workshops on digital marketing topics. He is also the author of more than 10 books on electronic publishing tools and technologies, including the Adobe Creative Cloud for Dummies. Christopher did his undergraduate studies the at the University of Minnesota, and then worked for Quark, Inc. prior to joining American Graphics Institute where he has worked for 20 years.