Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Applications > Tips to speed up Safari.

Tips to speed up Safari.
Thread Tools
Senior User
Join Date: Feb 2001
Location: Ny,Ny,USA
Status: Offline
Reply With Quote
Aug 1, 2004, 08:18 PM
 
I found a bunch of tips that greatly speed up Safari. These tips work so well that I thought I would share it with everyone. Maybe some of you already now about these tips but Ill post them anyways. All the following tips are from macosxhints.com.

1. Delete all your autofill entries from time to time. do this by going to Safari preferences, Autofill button, and then click the "Edit..." button for the "Other forms" box. In the next window that appears, just click Remove All.


2. Turn off all the languages you don't need. In the Finder, select the Safari application and do a Get Info (Command-I), click "Languages," and uncheck all the languages you don't need.

3. Disable Javascript in Safari (on the Security panel in the Preferences), it will load pages much faster.

4. Over time, Safari stores more and more info in your user's Library/Safari folder. Even though you can "reset" Safari, this doesn't clean up everything. The offending garbage was the "Icons" folder that stores every favicon you have ever come across. Manually delete this folder, which removed hundreds of files and folders from your machine and Safari. Once trashed, Safari is back to it's old speedy self.

You can also easily purge the unused icons from the cache with the following command from Terminal.app:

find $HOME/Library/Safari/Icons -type f -atime +30 -name "*.cache" -delete

Add this to your crontab to run every night. It purges any cached icons which have not been accessed in the past 30 days.

This seems like best compromise. It keeps the cache small, but still keeps the more useful favicons.

Or

Go to Users -> username -> Library -> Safari.

Go into the Icons folder and delete everything in there. Once you have deleted everything, return to the Safari folder and click on (highlighting) the Icons folder. Get Info and click the triangle next to Ownership & Permissions. Change the Owner to you (your short Unix name) and set the access to "Read only" then set the rest of the access lines to "No access"

This one helped a lot. My Icons folder was 17MBs!

5. If your Safari Bookmarks menu takes a while to pop up (like mine did -- very frustrating), just make sure that the bookmark names are short, as long ones slow it up considerably.

6. Increase Safari's page loading speed. Dave Hyatt made a post on his blog that describes a timer that Safari uses before it starts displaying any content. Supposedly the algorithm will be changed with the next release of Safari, but for now, you can still decrease the timer by quiting Safari and typing

defaults write com.apple.Safari WebKitInitialTimedLayoutDelay 0.25

at the Terminal.
i hate project managers.
     
Professional Poster
Join Date: Jan 2001
Location: brooklyn ny
Status: Offline
Reply With Quote
Aug 1, 2004, 09:23 PM
 
some good tips (i've had my icons folder empty & locked for some time).
but turning off javascript will cause some problems...
like this very site, where clicking on a forum connects you (without having to hit "go"); javascript!

and yahoo mail won't work without it, some other sites too.

i also use safari enhancer to disable the cache (and hide underlines for links... )


and then slow the whole thing down with pithhelmet (but worth it to kill those ads)
"At first, there was Nothing. Then Nothing inverted itself and became Something.
And that is what you all are: inverted Nothings...with potential" (Sun Ra)
     
Mac Elite
Join Date: Jan 2000
Location: Seattle, WA, King
Status: Offline
Reply With Quote
Aug 2, 2004, 01:55 AM
 
What does number 2 do to speed up Safari? I thought that only increased the speed of searches in the Finder.
     
Mac Elite
Join Date: Oct 2001
Location: Europe
Status: Offline
Reply With Quote
Aug 2, 2004, 03:07 AM
 
-oeps-
     
Professional Poster
Join Date: Mar 2002
Location: Boston
Status: Offline
Reply With Quote
Aug 2, 2004, 06:34 AM
 
I like the auto-fill feature. It saves me time, at most I only have to type a couple of characters.

As for #3, I think your not going to be able to hit a lot of sites with out javascript.

While a few of these are useful, you don't want to turn so much off in the name of speed which then also sacrifies your internet experience.

To be fair, I've never really noticed that Safari to be slow. Perhaps I'm not too obervant on these things. I'll try a couple of these recommendations, perhaps seeing how much stuff is in my icon's folder.

Mike
     
Posting Junkie
Join Date: Nov 2001
Location: Retired.
Status: Offline
Reply With Quote
Aug 2, 2004, 07:09 AM
 
7.) Wait for Safari v1.3...

     
Senior User
Join Date: Feb 2001
Location: Ny,Ny,USA
Status: Offline
Reply With Quote
Aug 2, 2004, 11:09 AM
 
I did all of them except turning off Javascript. I use to to frequently but I put it up anyways for others just in case. I didnt come up with the tip, Im just sharing it.

All the others ones great changed the speed of Safari. The Language one was a good one. Now it launches right away.
i hate project managers.
     
Senior User
Join Date: Feb 2001
Location: Ny,Ny,USA
Status: Offline
Reply With Quote
Aug 2, 2004, 11:11 AM
 
Originally posted by fisherKing:
some good tips (i've had my icons folder empty & locked for some time).
but turning off javascript will cause some problems...
like this very site, where clicking on a forum connects you (without having to hit "go"); javascript!

and yahoo mail won't work without it, some other sites too.

i also use safari enhancer to disable the cache (and hide underlines for links... )


and then slow the whole thing down with pithhelmet (but worth it to kill those ads)
Does Pith Helmut really slow down Safari? I have it running and I was curious.
i hate project managers.
     
Professional Poster
Join Date: Jan 2001
Location: brooklyn ny
Status: Offline
Reply With Quote
Aug 2, 2004, 12:32 PM
 
Originally posted by drainyoo:
Does Pith Helmut really slow down Safari? I have it running and I was curious.


it was painful on my pismo, but usable on my 12" revC pb.
it DOES slow things down a bit; your mileage may vary.

but i wouldn't give it up...no flash ads! etc...
"At first, there was Nothing. Then Nothing inverted itself and became Something.
And that is what you all are: inverted Nothings...with potential" (Sun Ra)
     
Posting Junkie
Join Date: Mar 2004
Location: MacNN database error. Please refresh your browser.
Status: Offline
Reply With Quote
Aug 2, 2004, 01:17 PM
 
The 2.0 beta of Pith also has a plug-in script (just drag it in) that helps block the text ads in gmail.

This is a computer-generated message and needs no signature.
     
Mac Enthusiast
Join Date: May 2004
Location: norway
Status: Offline
Reply With Quote
Aug 2, 2004, 07:55 PM
 
Originally posted by Randman:
The 2.0 beta of Pith also has a plug-in script (just drag it in) that helps block the text ads in gmail.
so does putting this in your custom css:
Code:
iframe[src*="googlesyndication"], iframe[src^="/google/box?"] { display: none !important }

     
Mac Elite
Join Date: Oct 2000
Location: Amboy Navada, Canadia.
Status: Offline
Reply With Quote
Aug 2, 2004, 08:26 PM
 
I use multiple browsers because site design seems to suck....iCab has everything turned off and filtered out since it's good at filtering and bad at doing things (well, it's fast), Safari has everything on since it opens up with URLs people give me (which tend to always need JS or flash, etc), and yet a third browser to do research because neither is available for my x86 machine and it has no confidential info on it. Once I have privoxy running full time, I can dump probably....safari and iCab for Firefox and Camino. It's all about features, speed, and compatibility.

This insanity brought to you by:
The French CBC, driving antenna users mad since 1937.
     
Grizzled Veteran
Join Date: Oct 2001
Location: Michigan
Status: Offline
Reply With Quote
Aug 3, 2004, 10:44 AM
 
I started to use firefox because of its perceived (faster) rendering speed. But thanks to these comments (esp the terminal line command) Safari is just as fast as firefox; no joke. IMO Safari has built in spelling which FF doesn't and can render pictures in posts. Best of all Pith Helmet blocks those annoying Flash ads.
Pismo 400 | Powerbook 1.5 GHz | MacPro 2.66/6GB/7300GT
     
Senior User
Join Date: Feb 2001
Location: Ny,Ny,USA
Status: Offline
Reply With Quote
Aug 3, 2004, 11:20 AM
 
Originally posted by tkmd:
I started to use firefox because of its perceived (faster) rendering speed. But thanks to these comments (esp the terminal line command) Safari is just as fast as firefox; no joke. IMO Safari has built in spelling which FF doesn't and can render pictures in posts. Best of all Pith Helmet blocks those annoying Flash ads.
You are definitely right. Safari for me is now just as fast as FF.
i hate project managers.
     
Grizzled Veteran
Join Date: Sep 2000
Location: San Francisco
Status: Offline
Reply With Quote
Aug 15, 2004, 02:42 AM
 
Someone also suggested fixing permissions as another speed-up.

Sadly none of these suggestions are helping me. Safari 1.2.3 beachballs (or SBOD or SWOD) for me terribly when I'm loading multiple tabs, or even more frustratingly, when I've got some tab loading which isn't going quickly. All of Safari comes to a screaming halt.

I've actually downloaded OmniWeb 5.0 and used it's import bookmarks function to compare the two. So far OW is more than holding its own against Safari. And I love how the address bar (etc.) dissapear while I'm surfing. Tabs on the side are taking a bit to get used to, but if I can eliminate these annoying pauses I'll be happily writing my upgrade fee cheque.
Since EBCDIC
Using Macs since they were Lisas.
     
Mac Enthusiast
Join Date: May 2004
Location: norway
Status: Offline
Reply With Quote
Aug 22, 2004, 01:45 PM
 
Originally posted by drainyoo:
You can also easily purge the unused icons from the cache with the following command from Terminal.app:

find $HOME/Library/Safari/Icons -type f -atime +30 -name "*.cache" -delete

Add this to your crontab to run every night. It purges any cached icons which have not been accessed in the past 30 days.
ehh.. Can anyone tell me how I add stuff to my crontab..?

     
Mac Elite
Join Date: Feb 2003
Location: columbus, oh
Status: Offline
Reply With Quote
Aug 22, 2004, 02:24 PM
 
OR---

~/Library/Safari/Icons--> change permission to no access and you won't have to worry about deleting icon cache.
"Another classic science-fiction show cancelled before its time" ~ Bender

15.2" PowerBook 1.25GHz, 80GB HD, 768MB RAM, SuperDrive
     
Addicted to MacNN
Join Date: Jan 2003
Location: ~/
Status: Offline
Reply With Quote
Aug 22, 2004, 03:38 PM
 
Originally posted by gorickey:
7.) Wait for Safari v1.3...

8. Buy a faster Mac.
     
Grizzled Veteran
Join Date: Sep 2000
Location: San Francisco
Status: Offline
Reply With Quote
Aug 22, 2004, 06:32 PM
 
Not so useful. A faster Mac will just get you to a SWOD that much faster :-/
Since EBCDIC
Using Macs since they were Lisas.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 10:57 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2