Evergreen Webview2 ((new))
Through registry keys and administrative templates, organizations can:
If you’re building for Windows, the Evergreen WebView2 control is likely the most efficient way to bring the power of the modern web into your native applications. Here is everything you need to know about what it is, why it matters, and how it works. What is Evergreen WebView2?
While the benefits are massive, letting Microsoft update your rendering engine automatically introduces specific development responsibilities. Breaking Changes and Regression Risk
Since the Evergreen runtime is shared across all apps (Teams, Office, Discord, etc.), Windows loads the same binaries into memory once. With Fixed Version, if you have five different apps using five different WebView2 versions, memory usage spikes dramatically. evergreen webview2
Because the Evergreen runtime is shared across the entire operating system, your application installer does not need to carry heavy Chromium binaries. This slashes your installer size by roughly 100MB to 150MB, leading to faster user downloads and reduced server bandwidth costs. 2. Zero-Maintenance Security Patches
To address this, Microsoft recommends implementing the NewBrowserVersionAvailable event handler in your WebView2 applications. This event is triggered when a new version of the Evergreen runtime has been installed on the system but is not yet being used by the running application. The correct flow for this scenario is:
Because the underlying rendering engine changes, adhere strictly to web standards in your frontend code. Avoid relying on undocumented Chromium bugs or non-standard behaviors that might get patched in future releases. Evergreen WebView2 vs. Electron While the benefits are massive, letting Microsoft update
WebView2 offers two distinct distribution models: and Evergreen .
When you use Evergreen WebView2, your application uses a small DLL. When the app starts, the Loader looks for the WebView2 Runtime on the user's machine.
// This uses the Evergreen runtime automatically. // It will look for an existing runtime; if none exists, you can optionally trigger download. await webView.EnsureCoreWebView2Async(null); // Navigate to your local or remote content webView.CoreWebView2.Navigate("https://myapp.local/dashboard.html"); Because the Evergreen runtime is shared across the
Imagine ten applications on a single machine, all using WebView2. With Evergreen, the runtime is installed once. With Fixed Version, you’re wasting nearly 2 GB of disk space. For enterprise IT, this is non-negotiable.
: Uses Microsoft Edge (Chromium-based) to render HTML, CSS, and JavaScript within native apps.
: Because multiple applications can share a single Evergreen installation, it significantly reduces the storage space required on a user’s device compared to bundling a dedicated "Fixed Version" for every app. Performance Optimization
: Reduces disk footprint by sharing one copy of the runtime across multiple apps on a single system.