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

dazzer21-2

macrumors 6502
Original poster
Dec 3, 2005
458
511
Recently, for periods of 30 seconds or so a few times a day, my late '15 iMac running Catalina effectively grinds to a halt. The mouse pointer stops moving and then about 10 seconds later, the cursor slowly moves about the screen on its own to catch up my frustrated, angry mouse waving, before it starts working fine again. I honestly thought someone was controlling my machine initially! I have now singled out that Safari 15.5 is causing this. Without it open, it's working just fine. Zapped the PRAM which makes no difference. Is the a way to uninstall/reinstall it?
 
  • Like
Reactions: cadec
Also can clear history if you have it set to "Manual" or "Year". History files can become huge and have seen that cause to start choking.
 
I have Safari 15.6.1. running in Big Sur on my iMac 21.5 - 2019. It has become very slow to load and sometimes the blue load bar at the top never disappears. I've trashed history and emptied the cache, run Onyx and done a restart, all to no avail. For the moment I've made Opera my default browser but I do like Safari. Any suggestions as to how I might solve its bugginess?
 
  • Like
Reactions: cadec
Presumably not - I'll continue to use Opera.
If you use iCloud, try to log out and see if the problem persists.

This is my "clean Safari" AppleScript:
Code:
    try
        do shell script "rm ~/Library/Safari/History*"
    end try
    try
        do shell script "rm -r ~/Library/Safari/LocalStorage"
    end try
    try
        do shell script "rm ~/Library/Cookies/Cookies.binarycookies"
    end try
    try
        do shell script "rm ~/Library/Cookies/com.apple.Safari.SearchHelper.binarycookies"
    end try
    try
        do shell script "rm -r ~/Library/Caches/com.apple.Safari"
    end try
    try
        do shell script "rm -r ~/Library/Containers/com.apple.Safari/Data/Library/Caches"
    end try
    try
        do shell script "rm -r ~/Library/Containers/com.apple.Safari/Data/Library/Saved\\ Application\\ State"
    end try
    try
        do shell script "rm -r ~/Library/Containers/com.apple.Safari/Data/Library/WebKit/WebsiteData"
    end try
    try
        do shell script "rm -r ~/Library/Safari/Databases"
    end try
    try
        do shell script "rm -r ~/Library/Safari/Favicon\\ Cache"
    end try
 
Improved “clean Safari” AppleScript, tested on 12.5.1 (21G83) & Safari 15.6.1 (17613.3.9.1.16)
Keeps bookmarks, user settings and tries to delete everything else.

Code:
try
    do shell script "find ~/Library/Safari/* -type d -exec rm -rf {} +"
end try
try
    do shell script "find ~/Library/Safari/ ! -name 'Bookmarks.plist' ! -name 'PerSitePreferences*' -type f -exec rm -f {} +"
end try
try
    do shell script "find ~/Library/Containers/com.apple.Safari/Data/Library/* ! -name 'Preferences' ! -name 'ByHost' ! -name 'Safari' ! -name 'AppExtensions' -type d -exec rm -rf {} +"
end try
try
    do shell script "rm -r ~/Library/Containers/com.apple.Safari.DiagnosticExtension"
end try
try
    do shell script "rm -r ~/Library/Containers/com.apple.Safari.SafariQuickLookPreview"
end try
try
    do shell script "rm -r ~/Library/Containers/com.apple.SafariPlatformSupport.Helper"
end try
try
    do shell script "rm -r ~/Library/Containers/com.apple.Safari.BrowserDataImportingService"
end try
try
    do shell script "rm -r ~/Library/Containers/com.apple.Safari.CacheDeleteExtension"
end try
try
    do shell script "rm -r ~/Library/Caches/com.apple.Safari"
end try
try
    do shell script "rm -r ~/Library/Caches/com.apple.Safari.SafeBrowsing"
end try

try
    do shell script "rm -r ~/Library/SafariSandboxBroker"
end try

try
    do shell script "rm -r ~/Library/SafariSafeBrowsing"
end try
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.