Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

TrancyGoose

macrumors 6502
Original poster
Jan 13, 2021
356
179
Can't find a definite answer online. Does Safari put the idle tabs to sleep or not? I know most Chromium based browsers do.
 

bogdanw

macrumors 603
Mar 10, 2009
6,099
3,010
The default configuration is Background Tab Suspension disabled.

Code:
defaults read ~/Library/Containers/com.apple.Safari/Data/Library/Preferences/com.apple.Safari.plist WebKitTabSuspension

returns "does not exist"
WebKitTabSuspension.jpg
 
  • Like
Reactions: TrancyGoose

TrancyGoose

macrumors 6502
Original poster
Jan 13, 2021
356
179
The default configuration is Background Tab Suspension disabled.

Code:
defaults read ~/Library/Containers/com.apple.Safari/Data/Library/Preferences/com.apple.Safari.plist WebKitTabSuspension

returns "does not exist"
View attachment 1942429
I am not very technical, but I assume that was a no, thank you! :D
Im trying to see if it's worth moving to Edge for example?
Installed Firefox, noticed a massive memory consumption, won't open it again! :D
 

TrancyGoose

macrumors 6502
Original poster
Jan 13, 2021
356
179
To enable Background Tab Suspension
- close Safari
- enable the Debug menu with

Code:
defaults write com.apple.Safari IncludeInternalDebugMenu -bool YES

- start Safari and uncheck the Disable Background Tab Suspension seen in the image above
Some info about the Debug menu https://osxdaily.com/2011/11/07/safari-debug-menu/
Thank you! Maybe you also know a way for Mac Mail not to show inline attachments? As in preview the 1 page documents in body? :D There is a command online, but it don't work any more :( Big Sure and Monterey seem to have changed.
 

tja0

macrumors newbie
Nov 5, 2021
1
1
To enable Background Tab Suspension
- close Safari
- enable the Debug menu with

Code:
defaults write com.apple.Safari IncludeInternalDebugMenu -bool YES

- start Safari and uncheck the Disable Background Tab Suspension seen in the image above
Some info about the Debug menu https://osxdaily.com/2011/11/07/safari-debug-menu/

This does sadly not exist anymore!

I cannot find it in the Debug menu, and also not within the defaults file:

Code:
$ defaults read ~/Library/Containers/com.apple.Safari/Data/Library/Preferences/com.apple.Safari.plist | grep -Ei '(background|suspend)' | grep -i tab
$


No result for anything related to background or suspend for Tabs ...
 
  • Like
Reactions: TrancyGoose

A2084

macrumors newbie
Oct 26, 2020
7
4
December 2023 with macOS Sonoma with Safari 17 and still no Debug option visible 😪
 

ksec

macrumors 68020
Dec 23, 2015
2,293
2,661
Anyone know if this can be done on Safari 17 or later. The option is gone in debug menu.
 

bogdanw

macrumors 603
Mar 10, 2009
6,099
3,010
As the option is no longer present in the menu, I doubt this will have any effect.
From Terminal
read
Code:
defaults read ~/Library/Containers/com.apple.Safari/Data/Library/Preferences/com.apple.Safari.plist WebKitTabSuspension

write
Code:
defaults write ~/Library/Containers/com.apple.Safari/Data/Library/Preferences/com.apple.Safari.plist WebKitTabSuspension -bool YES

delete
Code:
defaults delete ~/Library/Containers/com.apple.Safari/Data/Library/Preferences/com.apple.Safari.plist WebKitTabSuspension
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.