![Pete LePage](https://web.dev/images/authors/petelepage.jpg) Pete LePage [X](https://twitter.com/petele) [GitHub](https://github.com/petele) [Mastodon](https://techhub.social/@petele) [Homepage](https://petelepage.com/)

<br />

[Video](https://www.youtube.com/watch?v=_BtaAIhC2UU)

In Chrome 75, we've added support for:

- There's a new way to [reduce latency on `canvas` elements](https://developer.chrome.com/blog/new-in-chrome-75.md.txt#desync).
- Web apps can now [share files](https://developer.chrome.com/blog/new-in-chrome-75.md.txt#share-files) to other installed apps using the system level share sheet.
- Numeric literals now allow [underscores as separators](https://developer.chrome.com/blog/new-in-chrome-75.md.txt#num-sep) to make them more readable.
- Google I/O 2019 is a wrap and all of [talks](https://developer.chrome.com/blog/new-in-chrome-75.md.txt#io-talks) are on our YouTube channel.

I'm [Pete LePage](https://petelepage.com/), let's dive in and see
what's new for developers in Chrome 75!

## Change log

This covers only some of the key highlights, check the links below for
additional changes in Chrome 75.

- [What's new in Chrome DevTools (75)](https://developer.chrome.com/blog/new-in-devtools-75.md.txt)
- [Chrome 75 deprecations \& removals](https://developers.google.com/web/updates/2019/05/chrome-75-deps-rems)
- [ChromeStatus.com updates for Chrome 75](https://www.chromestatus.com/features#milestone%3D75)
- [What's new in JavaScript in Chrome 75](https://v8.dev/blog/v8-release-75)
- [Chromium source repository change list](https://chromium.googlesource.com/chromium/src/+log/74.0.3729.108..75.0.3770.67)

## Hint for low latency `canvas` contexts

![](https://developer.chrome.com/static/blog/new-in-chrome-75/image/C063CtT60X6q0DOffXzv.jpg)

Drawing on screen with the canvas element requires the page to synchronize
graphics updates with the DOM. This synchronization can sometimes cause latency.
For example, in a drawing app, latencies longer than 50 milliseconds can
interfere with hand-eye coordination, making them difficult to use.

The `desynchronized` hint, when creating a `canvas` context, uses a different
code path, that bypasses the usual DOM update mechanism. The hint tells the
system to skip as much compositing as it can. In some cases, the `canvas`'s
underlying buffer is sent directly to the screen's display controller. This
eliminates the latency that would be caused by using the renderer compositor
queue.

Using the desynchronized hint is simple, just add `desynchronized: true` to
the options object when creating the canvas.

```javascript
const opts = { desynchronized: true };
const ctx = canvas.getContext('2d', opts);
```

Check out Joe's article [Low-latency rendering with the desynchronized hint](https://developers.google.com/web/updates/2019/05/desynchronized)
for more details, including how to do feature detection for it.

## Share files with the Web Share API

The [Web Share API](https://developers.google.com/web/updates/2016/09/navigator-share) allows you to plug
into the share service provided by the OS, making it easy to share web pages
and apps with other installed apps on the user's device.

In Chrome 75, the Web Share API now supports the sharing of files! I'm
particularly excited about this because it makes it way easier for apps to
share photos, videos and more. Squoosh is adding support for this to share a
file once you've finished compressing it. The Web Share API currently supports
the sharing of [audio files, images, videos, and text documents](https://docs.google.com/document/d/1tKPkHA5nnJtmh2TgqWmGSREUzXgMUFDL6yMdVZHqUsg/edit).

It's best to use feature detection to see if the Web Share API is supported,
and fallback to your traditional mechanism if it's not. And you can use
`navigator.canShare` to check if file sharing is supported.

<br />

```javascript
const webShareAvailable = {
  links: 'share' in navigator,
  files: 'canShare' in navigator,
};
```

If `navigator.canShare` returns `true`, sharing of those files is supported,
so you can call `navigator.share`, and pass an object with the array of files
you want to share. Chrome will open the system share sheet and give you a
list of installed apps that you can share the files to.

```javascript
if (webShareAvailable.files) {
  const shareData = { files: filesArray };
  if (navigator.canShare(shareData)) {
    shareData.title = 'Squooshed files.';
    navigator.share(shareData)
      .then(...)
      .catch(...);
  } else {
    // File sharing not supported
  }
}
```

Try the [demo](https://wicg.github.io/web-share/demos/share-files.html) and check out the article
[Share files with Web Share](https://developers.google.com/web/updates/2019/05/web-share-files) for complete details.

## Numeric separators

Numeric literals now [allow underscores](https://www.chromestatus.com/feature/5829906369871872) (_, U+005F) as
separators to make them more readable. For example, `1_000_000_000` will be
interpreted by mathematical operations as equivalent to `1000000000`.

Underscores can only appear between digits, and consecutive underscores are
not allowed. So literals such as `3._14`, `_2.71` or `1.6__2` are illegal.

## Google I/O 2019 is a wrap

If you didn't make it to I/O, or maybe you did, and didn't see all the talks,
they're all up on the [Chrome Developers YouTube channel](https://youtube.com/user/ChromeDevelopers/), in the
[Web at Google I/O 2019 playlist](https://bit.ly/web-at-io2019).

- Tom and I presented ["Unlocking new capabilities for the web"](https://www.youtube.com/watch?v=GSiUzuB-PoI) covering some of the amazing new capabilities that are landing in browsers this year.
- Addy and Katie covered some cool performance tips and tricks in ["Speed at Scale"](https://www.youtube.com/watch?v=YJGCZCaIZkQ).
- Elizabeth and Paul dove into some cool devtools in ["Demystifying Speed Tooling"](https://www.youtube.com/watch?v=mLjxXPHuIJo).
- And in ["Build Fast and Smooth Web Apps from Feature Phone to Desktop"](https://www.youtube.com/watch?v=w8P5HLxcIO4) Mariko showed us how she and her crew built [Proxx](https://proxx.app/) to work on any device, from feature phone to smart phone to desktop. If you haven't tried [Proxx](https://proxx.app/) yet, it's a super fun mine sweeper clone.

## Subscribe

Want to stay up to date with our videos, then [subscribe](https://goo.gl/6FP1a5)
to our [Chrome Developers YouTube channel](https://www.youtube.com/user/ChromeDevelopers/),
and you'll get an email notification whenever we launch a new video.

I'm Pete LePage, and as soon as Chrome 76 is released, I'll be right
here to tell you -- what's new in Chrome!

### Photo Credits

- Sketching photo by [Balázs Kétyi](https://unsplash.com/photos/byoBbHSlP5U) from [Unsplash](https://unsplash.com/search/photos/sketching-tablet)