MicrosoftEdge / MicrosoftEdge/WebView2Feedback

Call to EnsureCoreWebView2Async very slow (~9 seconds)

Open
#3,130 4 comments 0 reactions 1 assignee View on GitHub

@LiangTheDev is already working on this.

Since Jan 20, 2023.

bug
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

I included WebView2 in a rather complex WPF application and noticed that the call to EnsureCoreWebView2Async is very slow and takes about 9 seconds. I then put the same code into a simple new WPF application that only displays the WebView2 control and the call to EnsureCoreWebView2Async now only takes 350ms.
How is this possible? Are there ways find out what takes so long in EnsureCoreWebView2Async in this special case? How can the performance be improved?

SDK: 1.0.1462.37
Framework: .NET Framework 4.8
OS: Windows 10

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.