Go to content Go to navigation Go to search

Josh's Posts Tagged ‘safari’

Safari Flipping Out? Try Clearing the Cache

Over the past few weeks Safari started chewing up the CPU and causing my MacBook Pro to sound like it’s going to take flight. This of course chews up the battery as well.

At first, I thought there was Flash running in one of the pages I load regularly since Flash has a number of issues running well on a Mac. My other thought was that one of the sites I visit regularly has some weird JavaScript bug. The CPU usage would just start climbing at some point; I couldn’t pin down what the cause was or the exact steps to recreate it.

So today I fire it up and Safari immediately starts to devour system resources. Fed up, I do all of the usual things: disabled plug-ins, moved the contents out of ~/Library/Safari, watched the Console for odd messages. Nothing seemed to do it.

Then in occurred to me to try something as a web developer I do all the time: Empty the Browser Cache. (Safari > Empty Cache…)

Disco! It seems once the cache gets to a certain point in Safari, it begins to struggle.

Sometimes the answer is simple.

Hope this helps.

My Delicious Bookmarks (2008-08-12 - 2008-08-14)

Recent links posted to Delicious:

  • Ajaxian » iPhone Safari Flick Navigation By Example .divSlide {
    -webkit-animation-name: "slide-me-to-the-right";
    -webkit-animation-duration: 1s;
    }
    @-webkit-keyframes "slide-me-to-the-right" {
    from { left: 0px; }
    to { left: 100px; }
    }
  • To Title Case | Individed JavaScript for converting text to title case.
  • Terminal Tip: Burning a disc did you know that you can burn discs right from the Terminal window with a simple command and a drag/drop? Just enter the following command followed by the path to a folder or disk image:

    drutil burn filehere

    Don't type the "filehere" — that's where you put the path to the file/folder that you wish to burn. You can either type the location manually or drag and drop the file onto the Terminal window. But that's not all you can do with drutil; you can also eject media from the optical drive by typing "drutil eject." To see all of the available drutil options, just type in drutil for a quick list or man drutil for a full description.

del.icio.us Bookmarks (2008-04-11 - 2008-04-12)

Recent links for http://del.icio.us/quixado:

del.icio.us Bookmarks (2008-03-21 - 2008-03-27)

Recent links for http://del.icio.us/quixado:

del.icio.us Bookmarks (2008-03-04 - 2008-03-06)

Recent links for http://del.icio.us/quixado:

del.icio.us Bookmarks (2008-02-26)

Recent links to http://del.icio.us/quixado:

  • MissingDrawer plugin for TextMate
  • MonoPrice.com HDMI Cable, Home Theater Accessories, HDMI Products, Cables, Adapters, Video/Audio Switch, Networking, USB, Firewire, Printer Toner, and more!
  • Keywurl Safari Plug-in the restores search to the address bar like Firefox.

Browser Switch: Safari / Webkit Trial

For a long time I’ve been increasingly frustrated with the performance of Firefox 2 on my Mac. The Mozilla folk will blame it on plug-ins and such, but I’ve done a lot of tweaking, hacking, and research and it’s just got issues.

The main issue is the memory bleeding. Every other day requires I shut down Firefox and restart it. The second is occasional responsiveness even before the memory leakage fires up. On the Safari side, the new Webkit builds keep getting faster, and being an iPhone user, the consolidation and ease of syncing bookmarks is not without its appeal. This doesn’t mean Firefox is out, the wide selection of plug-ins/add-ons still makes it my go to browser for development and debugging; I’m just trying it in the second string position.

Speaking of plug-ins, this may be the biggest flaw in using Safari: Not a lot of development for plug-ins and not easily extensible. The biggest resource I’ve found so far is a site called Pimp My Safari, which has been helpful, but doesn’t seem to be updated frequently. So I’ve been compiling a list of the features I want/need ported from Firefox to make this browser switch stick:

  • Click RSS icon and add to Google Reader or other online reader. Since I access feeds from both my Mac and my iPhone, I use an online reader. I want to easily click that “RSS” icon in the address bar and assign that feed where I want.
  • Multiple session session-saver. You can load your last session, but I want the option to save multiple sessions and jump back to a specific ones.
  • Some refinement to the very impressive Safari Web Inspector. Namely the ability to click “Inspect” and select a section of the page like Firebug.
  • I like to search right from the location bar. My biggest frustration right now is that muscle memory has my typing search terms in and getting a Safari error page.
  • A plugin to post directly to Delicious. Bookmarklets are fine, but I want tighter integration, once again like the delicious plugin for Firefox.

I’m sure I’ll find some others and will update this post; I’m only in day two of the test. If you have solutions or know of good plug-ins for Safari, please let me know.

del.icio.us Bookmarks (2007-11-26 - 2007-11-29)

Recent links for http://del.icio.us/quixado:

qxbv