在过去1年中,谷歌 Chrome 浏览器通过多个阶段的方案逐步减少对 Flash 插件的依赖。今天,Chrome 55 正式面向 Mac、Windows 和 Linux 系统推出,并禁用 Flash,默认开启对 HTML5 的支持。 输入处理改进As usage of the mobile web grows, it is increasingly important for sites to react well to touch input. Historically, this meant handling MouseEvent and TouchEvent separately, which can be difficult to maintain. Chrome now enables unified input handling by dispatching PointerEvents. PointerEvents lead to more responsive pages, as they don’t block scrolling by default. To achieve the same performance with TouchEvent, pages can use passive event listeners. 异步和等待功能Asynchronous JavaScript can be difficult to reason about. Promises help avoid the nesting problem of callbacks, but Promise-based code can still be difficult to read when a site has large chains of asynchronous dependencies. Chrome now supports the async and await JavaScript keywords, allowing developers to write Promise-based JavaScript that can be as structured and readable as synchronous code. Fetching a URL and logging the response using Promises: function logFetch(url) { return fetch(url)
.then(response => response.text())
.then(text => {
console.log(text);
}).catch(err => {
console.error('fetch failed', err);
});
} The same code using async and await: async function logFetch(url) { try {
const response = await fetch(url);
console.log(await response.text());
}
catch (err) {
console.log('fetch failed', err);
}
} CSS 自动连字Formatting text to fill available space can be a challenge across devices and screen sizes. Chrome now supports CSS automatic hyphenation, one of Chrome’s most frequently requested layout features, on Android and Mac. CSS hyphenation allows the browser to hyphenate words when line-wrapping, improving the visual consistency of text blocks. Hyphenation support will be extended to other platforms in future releases. A paragraph rendered with and without automatic hyphenation 其他特性
弃用和互操作性改进
https://blog.chromium.org/2016/10/chrome-55-beta-input-handling.html Google Chrome 稳定版 官方本地下载地址: Google Chrome v55.0.2883.75 无更新功能版 32位 http://dl.google.com/release2/55.0.2883.75_chrome_installer.exe Google Chrome v54.0.2840.99 无更新功能版 64位 http://dl.google.com/release2/55.0.2883.75_chrome_installer.exe |