Skip to content

Safari 27 Brings Full Top-Level Await Support In WebKit

Safari 27 brings full spec compliance for top-level await in WebKit, letting developers use await directly inside ES modules without workarounds. The change aligns Safari with other browsers and removes the need for Safari-specific code paths.

Here’s what top-level await compliance means for your code and how to update Safari on Mac and iPhone.

Safari 27 Adds Full Top-Level Await Compliance

According to the WebKit blog, WebKit for Safari 27 adds full spec compliance for top-level await. Developers can now use await at the top level of ES modules in Safari without needing browser-specific workarounds.

Top-level await is the JavaScript feature that lets you use await directly inside a module, without wrapping code in an async function. Aligning Safari’s behavior with the ECMAScript specification ensures code that works in other browsers will behave the same way in Safari 27.

What This Means for Web Developers

If you maintain a site or library that uses top-level await in modules, Safari 27 eliminates the need for Safari-specific workarounds. Test your modules in the latest Safari build to confirm the behavior matches the spec and simplify any polyfills or shims you’ve added.

How to Update Safari on Mac

Safari on Mac is updated through macOS system updates. Use the steps below to install the latest version.

  1. Click on the Apple apple logo menu from the menu bar and select the System Settings... sub-menu. Apple Menubar with System Settings highlightedIt will open the System Settings window.
  2. Select the General tab in the left sidebar, and choose the Software Update tab.
    Software Update menu under General tab on macOSThe macOS System will check for any available upgrades in the background.
  3. Click on the More Info... tab and enable the checkbox for Safari updates (if any are available).
    More Info option with Software Updates Available on macOS
  4. Hit on the Update Now button.
    It will update the Safari browser.

Relaunch Safari and confirm the new version under Safari > About Safari.

How to Update Safari on iPhone

Safari on iPhone updates through iOS system updates. Follow the steps below to install the latest version.

  1. Open Settings on your phone, and head on to the General section.
  2. Select Software Update to open the screen.
    Software Update menu under General tab on iPhone deviceThe device will automatically start looking for updates.
  3. Tap the Download and Install button.
    Download and Install the Software Update in iOS deviceThe update will download and install the latest Safari on your device, if available.

Restart Safari and verify the version is current.

note icon

Safari updates roll out through macOS and iOS system updates. If you don’t see Safari 27 yet, check for updates manually or wait for the phased rollout to reach your region.

Please share the article if you find it helpful:

Disclosure: This page may contain affiliate links, which means we may receive compensation for your purchases; of course at no extra cost to you (indeed, you may get special discounts).
Editorial Staff

Editorial Staff

Editorial Staff at BrowserHow is a team of Web Browser experts whose primary role is ensuring the content is up-to-date with the latest changes and factually correct information. Highly experienced in technical writing, news reporting, troubleshooting, and content management. You can read more about our BrowserHow team.

Leave a thought or feedback

Please leave a descriptive comment or feedback with your real name. Our human moderator vets every comment, and it may take 24 to 48 hours to get published or rejected.
Your email address will not be published, and we will never spam your inbox. Required fields are marked *