How can the loading speed of WebView2 be increased?

si zuo 20 Reputation points
2024-03-04T09:03:14.9366667+00:00

In the official WebView2 example, WebView2APISample,

added code to debug output the time interval from the beginning of page loading to the completion of loading.

Loading the following two websites takes more than 10 seconds each, and the debug output is as follows:

2024-03-04 16:33:02013, Page load start URL:https://www.adobe.com/jp/creativecloud.html
2024-03-04 16:33:12909, NavigationCompleted
2024-03-04 16:33:27042, Page load start URL:https://onedrive.live.com/
2024-03-04 16:33:43468, NavigationCompleted

How can the loading speed of WebView2 be improved?

Windows development Windows API - Win32
{count} votes

1 answer

Sort by: Most helpful
  1. gekka 12,206 Reputation points MVP Volunteer Moderator
    2024-03-05T00:28:04.11+00:00

    Use network tool and performance tool in browser's DevTools to find out what is causing the slow.
    It should be possible to isolate whether network is slow or whether javascript is the cause

    20240305

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.