Stop Safari Automatically Reloading Tabs in OS X Lion

Before We Get Started

Having spent over 20 years working with Macs both old and new there is a tool I recommend to every Mac Owner: CleanMyMac X, its simply best all-round problem solver for the Mac and it can quickly solve most performance issues covered on this site. So here is a tip for you, go Download CleanMyMacX right now and start enjoying a faster Mac today!

You may have noticed a change in the way Safari manages tabs in Lion. When a tab has been left inactive for a while Safari may start reloading each tab as you switch to them.

It turns out that this is actually a new feature in Safari 5 (and Webkit 2) called “multi-process windows” which separates the UI processes from web/content processes meaning that in theory a problem with one won’t affect the other causing the entire application to quit. However for some reason the recent release of Safari web processes seem to crash quite often, which forces Safari to refresh each tab seemingly randomly.

If you finding this a real issue there is a workaround, unfortunately it means sacrificing some of Lions new gestures (two finger back & forward, pinch to zoom and the two finger tap smart zoom gesture) and may cause problems with the newer extensions you have installed.

The first step is to enable Safaris debug menu, to do this open the Terminal and type:

defaults write com.apple.Safari IncludeInternalDebugMenu 1

Relaunch Safari now and you should see the Debug menu appear beside the Help menu. In the Debug menu uncheck the “Use Multi Process Windows”. Now close all open Safari windows, and that’s it tabs will now stop unexpectedly reloading. From now on all windows will have [SP] as a suffix to the page title, which stands for Single Process.

Safari debug menu - Multi process windows

If you do miss using any gestures or extensions all you need to reselect the Use Multi Process Windows option and to remove debug menu from Safari reopen the Terminal and this time enter:

defaults write com.apple.Safari IncludeInternalDebugMenu 0

About the author


Follow me here: |

Add Comment

Click here to post a comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.