Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Add extra flags to disable throttling behavior. #55

Merged
merged 2 commits into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- Require Dart 3.0
- Log errors from chrome
- Allow tests to detect headless-only environment (for CI).
- Add extra flags that may help disable additional throttling in background tabs

## 1.1.1

Expand Down
2 changes: 2 additions & 0 deletions lib/src/chrome.dart
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ class Chrome {
'--remote-debugging-port=$port',
// When the DevTools has focus we don't want to slow down the application.
'--disable-background-timer-throttling',
'--disable-blink-features=TimerThrottlingForBackgroundTabs',
'--disable-features=IntensiveWakeUpThrottling',
// Since we are using a temp profile, disable features that slow the
// Chrome launch.
if (!signIn) '--disable-extensions',
Expand Down