開発者が気になりそうなChrome 76の変化
#Google_Chrome #アップデート
Google公式のNew in Chrome 76  |  Web  |  Google Developersを参考にしている。
PWAのボタンがOmniboxに搭載された
https://gyazo.com/ece6d8b6b573d2f53082bb8bdb9a614e
CSSのダークモード対応
code:css
@media (prefers-color-scheme: dark) {
body {
background-color: black;
color: white;
}
}
JavaScriptでPromise.allSettled()が使えるように
code:js
const promises = [
fetch('/api-call-1'),
fetch('/api-call-2'),
fetch('/api-call-3'),
];
// Imagine some of these requests fail, and some succeed.
await Promise.allSettled(promises);
// All API calls have finished (either failed or succeeded).
JavaScriptのBlobが色んな型で読み出しやすくなった
code:js
// New easier way
const text = await blob.text();
const aBuff = await blob.arrayBuffer();
const stream = await blob.stream();
非同期クリップボードAPIで画像がサポートされた
詳細: Image Support for the Async Clipboard API  |  Web  |  Google Developers
Chrome 76でのJavaScriptの新しいこと
V8 release v7.6 · V8
JSON.parse()の速度向上などにも触れている
Native loazy-loading
code:html
<img loading=”lazy”>
<iframe loading=”lazy”></iframe>
詳細:
発見元ツイート: