Safari on my MacBook Air M2 has started freezing for 20–30 seconds at a time with the spinning beachball. Other apps are fine. I have maybe 40 tabs open across four profiles.
Before I reinstall everything, what should I try?
Forty tabs is a lot, and Safari keeps each one alive with scripts and media. Start by closing tabs you have not touched in a week, then quit Safari completely and reopen it — holding Shift while launching reopens only your last session, not all windows.
Next, Safari → Settings → Extensions: disable everything, restart Safari, and re-enable one at a time. Old content blockers are the single most common cause of a suddenly slow Safari after a macOS update.
Then check System Settings → General → Login Items & Extensions and remove anything you do not need. If Safari still beachballs, create a new macOS user account and test there. If it is fast in the new account, the problem is a corrupted preference file in yours, which you can reset by quitting Safari and moving ~/Library/Preferences/com.apple.Safari.plist to the desktop, then restarting.