You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: crates/tauri-cli/config.schema.json
+37
Original file line number
Diff line number
Diff line change
@@ -516,6 +516,17 @@
516
516
"type": "null"
517
517
}
518
518
]
519
+
},
520
+
"backgroundThrottling": {
521
+
"description": "Change the default background throttling behaviour.\n\n By default, browsers use a suspend policy that will throttle timers and even unload\n the whole tab (view) to free resources after roughly 5 minutes when a view became\n minimized or hidden. This will pause all tasks until the documents visibility state\n changes back from hidden to visible by bringing the view back to the foreground.\n\n ## Platform-specific\n\n - **Linux / Windows / Android**: Unsupported. Workarounds like a pending WebLock transaction might suffice.\n - **iOS**: Supported since version 17.0+.\n - **macOS**: Supported since version 14.0+.\n\n see https://github.com/tauri-apps/tauri/issues/5250#issuecomment-2569380578",
"description": "A policy where background throttling is disabled",
967
+
"type": "string",
968
+
"enum": [
969
+
"disabled"
970
+
]
971
+
},
972
+
{
973
+
"description": "A policy where a web view that’s not in a window fully suspends tasks. This is usually the default behavior in case no policy is set.",
974
+
"type": "string",
975
+
"enum": [
976
+
"suspend"
977
+
]
978
+
},
979
+
{
980
+
"description": "A policy where a web view that’s not in a window limits processing, but does not fully suspend tasks.",
981
+
"type": "string",
982
+
"enum": [
983
+
"throttle"
984
+
]
985
+
}
986
+
]
987
+
},
951
988
"SecurityConfig": {
952
989
"description": "Security configuration.\n\n See more: <https://v2.tauri.app/reference/config/#securityconfig>",
Copy file name to clipboardexpand all lines: crates/tauri-cli/schema.json
+9
Original file line number
Diff line number
Diff line change
@@ -465,6 +465,15 @@
465
465
"description": "Whether page zooming by hotkeys is enabled\n\n ## Platform-specific:\n\n - **Windows**: Controls WebView2's [`IsZoomControlEnabled`](https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/winrt/microsoft_web_webview2_core/corewebview2settings?view=webview2-winrt-1.0.2420.47#iszoomcontrolenabled) setting.\n - **MacOS / Linux**: Injects a polyfill that zooms in and out with `ctrl/command` + `-/=`,\n 20% in each step, ranging from 20% to 1000%. Requires `webview:allow-set-webview-zoom` permission\n\n - **Android / iOS**: Unsupported.",
466
466
"default": false,
467
467
"type": "boolean"
468
+
},
469
+
"backgroundThrottling": {
470
+
"description": "Change the default background throttling behaviour.\n\n By default, browsers use a suspend policy that will throttle timers and even unload\n the whole tab (view) to free resources after roughly 5 minutes when a view became\n minimized or hidden. This will pause all tasks until the documents visibility state\n changes back from hidden to visible by bringing the view back to the foreground.\n\n ## Platform-specific\n\n - **Linux / Windows / Android**: Unsupported. Workarounds like a pending WebLock transaction might suffice.\n - **iOS**: Supported since version 17.0+.\n - **macOS**: Supported since version 14.0+.\n\n see https://github.com/tauri-apps/tauri/issues/5250#issuecomment-2569380578",
Copy file name to clipboardexpand all lines: crates/tauri-cli/tauri.config.schema.json
+10-1
Original file line number
Diff line number
Diff line change
@@ -465,6 +465,15 @@
465
465
"description": "Whether page zooming by hotkeys is enabled\n\n ## Platform-specific:\n\n - **Windows**: Controls WebView2's [`IsZoomControlEnabled`](https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/winrt/microsoft_web_webview2_core/corewebview2settings?view=webview2-winrt-1.0.2420.47#iszoomcontrolenabled) setting.\n - **MacOS / Linux**: Injects a polyfill that zooms in and out with `ctrl/command` + `-/=`,\n 20% in each step, ranging from 20% to 1000%. Requires `webview:allow-set-webview-zoom` permission\n\n - **Android / iOS**: Unsupported.",
466
466
"default": false,
467
467
"type": "boolean"
468
+
},
469
+
"backgroundThrottling": {
470
+
"description": "Change the default background throttling behaviour.\n\n By default, browsers use a suspend policy that will throttle timers and even unload\n the whole tab (view) to free resources after roughly 5 minutes when a view became\n minimized or hidden. This will pause all tasks until the documents visibility state\n changes back from hidden to visible by bringing the view back to the foreground.\n\n ## Platform-specific\n\n - **Linux / Windows / Android**: Unsupported. Workarounds like a pending WebLock transaction might suffice.\n - **iOS**: Supported since version 17.0+.\n - **macOS**: Supported since version 14.0+.\n\n see https://github.com/tauri-apps/tauri/issues/5250#issuecomment-2569380578",
Copy file name to clipboardexpand all lines: crates/tauri-schema-generator/schemas/config.schema.json
+37
Original file line number
Diff line number
Diff line change
@@ -516,6 +516,17 @@
516
516
"type": "null"
517
517
}
518
518
]
519
+
},
520
+
"backgroundThrottling": {
521
+
"description": "Change the default background throttling behaviour.\n\n By default, browsers use a suspend policy that will throttle timers and even unload\n the whole tab (view) to free resources after roughly 5 minutes when a view became\n minimized or hidden. This will pause all tasks until the documents visibility state\n changes back from hidden to visible by bringing the view back to the foreground.\n\n ## Platform-specific\n\n - **Linux / Windows / Android**: Unsupported. Workarounds like a pending WebLock transaction might suffice.\n - **iOS**: Supported since version 17.0+.\n - **macOS**: Supported since version 14.0+.\n\n see https://github.com/tauri-apps/tauri/issues/5250#issuecomment-2569380578",
"description": "A policy where background throttling is disabled",
967
+
"type": "string",
968
+
"enum": [
969
+
"disabled"
970
+
]
971
+
},
972
+
{
973
+
"description": "A policy where a web view that’s not in a window fully suspends tasks. This is usually the default behavior in case no policy is set.",
974
+
"type": "string",
975
+
"enum": [
976
+
"suspend"
977
+
]
978
+
},
979
+
{
980
+
"description": "A policy where a web view that’s not in a window limits processing, but does not fully suspend tasks.",
981
+
"type": "string",
982
+
"enum": [
983
+
"throttle"
984
+
]
985
+
}
986
+
]
987
+
},
951
988
"SecurityConfig": {
952
989
"description": "Security configuration.\n\n See more: <https://v2.tauri.app/reference/config/#securityconfig>",
0 commit comments