Skip to content

How to pause webview when it is not in the foreground to improve performance? #3519

@connor-wj-kang

Description

@connor-wj-kang

Add android onPause and pauseTimers support

Here’s the official document explanation of these two WebView functions:
image
image

I am using react-native-webview library to build a webview-based browser. Each tab corresponding to a webview component. How to freeze recently unused webview (not unmount) when it is in the foreground ({display: "hidden"})?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions