Skip to content

[Problem/Bug]: When I load a web page, there is a white screen for a moment before the page loads. #5202

Closed
@irainbw

Description

@irainbw

What happened?

I know about the WEBVIEW2_DEFAULT_BACKGROUND_COLOR environment variable, but I want to know how to set this environment variable on WIN32. Is there an example here?

When I use put_DefaultBackgroundColor to set a transparent background, a white screen will also appear

Importance

Important. My app's user experience is significantly compromised.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

No response

SDK Version

1.0.902.49

Framework

Win32

Operating System

Windows 11

OS Version

No response

Repro steps

loading the web page

Repros in Edge Browser

Yes, issue can be reproduced in the corresponding Edge version

Regression

No, this never worked

Last working version (if regression)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions