Google today detailed a new improvement in Chrome that results in a faster browsing experience. Available now in the browser's beta channel, Chrome reschedules JavaScript timers to create a smoother experience when you're interacting with a webpage. JavaScript timers let web developers write code that checks in on a page periodically (with APIs like setTimeout). Scheduling code at opportune times would be ideal, but developers often don't have enough information to do so. Because a timer's function is placed into the main execution queue, if the function is run at the wrong time, it can block time-critical work that shares the queue. Input and rendering should take precedence, and as of Chrome 45 beta, timers take this logic into account as well. Chrome gained a scheduler a few months ago so that it could place tasks in the idle time between rendering frames. The goal was to help the browser hit 60 frames per second,
Read full article from Chrome beta now reschedules JavaScript timers to make webpages faster and interaction smoother | VentureBeat | Dev | by Emil Protalinski
No comments:
Post a Comment