Showing posts with label Firefox Tricks. Show all posts
Showing posts with label Firefox Tricks. Show all posts

Thursday, May 17, 2007

More Firefox Bloat? Say It Ain't So, Mozilla

When Firefox launched in beta release five years ago, it burst on the open-source browser scene like a young Elvis Presley -- slim, sexy and dangerous.

Since then it has attracted millions of users, generally set the agenda for browser development and unseated Microsoft's Internet Explorer as the de facto monopoly in the field. But, with Firefox 3.0 poised for release later this year, the "IE killer" is in danger of morphing into an early Fat Elvis, if increasing numbers of die-hard fans turned reluctant critics are any guide.

Anecdotal reports of problems, from sluggishness to slow page loads and frequent crashes, have begun circulating in web forums, along with increasingly loud calls for Firefox to return to its roots. The alleged culprit: bloat, the same problem that once plagued Mozilla, the slow, overstuffed open-source browser spawned by Netscape that Firefox was originally meant to replace.

"Remember when (Firefox) was the 'light' browser, and if you wanted to load it down that was your choice? Let's go back to that," summed up one reader in a Wired News poll this month aimed at identifying the most urgently needed Firefox fixes.

When Firefox 1.0 arrived in November 2004, it was hailed as one of free software's crowning achievements. A team of far-flung volunteers had created a slimmed-down, standards-compliant web browser that beat the pants off Internet Explorer, which then dominated the market with 90 percent share estimates.

After strong early adoption by zealots and open-source advocates, Firefox started to win over non-geek users. In two years, the browser had carved out a 15 percent share of the market -- a once unthinkable chunk -- and it's still gaining ground.

But it's leaving many of those new users perplexed. Why is the elegant, community-built application suddenly behaving badly?

In our poll, readers rated Firefox's mysterious habit of gobbling up every remaining scrap of a computer's memory their No. 1 gripe about the browser. Complaints of slow performance and instability ranked highly as well.

Statistics are hard to come by, but our own experiences with the browser include crashes, memory hogging, molasses-slow page loads and the spinning beach ball of death. The problems are even worse for Mac users, so much so that last month, Firefox developer Colin Barrett broached the question on his blog: What sucks about Firefox on the Mac?

Mike Schroepfer, Mozilla's vice president of engineering, concedes that performance can be an issue, especially with memory handling. But he's also quick to place the blame outside the browser.

"Memory usage is dependent on the environment," he says. "Other software, add-ons, extensions and other things can impact performance."

Ah, yes, those damned add-ons.

When Blake Ross first started hacking away at the Mozilla Suite code to create what would eventually become Firefox, one of his goals was to slim the browser down by moving any nonessential functionality into a framework of user-customizable extensions. Today, popular add-ons for the browser include file-sharing tools, remote controls for iTunes and slick-looking user-interface enhancements.

Certainly, Firefox's infinitely customizable nature remains one of its most-loved features. But those third-party add-ons can also be the source of many Firefox woes. As users pimp their browsers to the extreme, they introduce a greater potential for performance problems.

In an effort to stamp out incompatibilities between extensions, the Firefox team has slowly been adding standard features that were previously available as add-ons. Firefox 2.0, released in November 2006, saw the addition of an inline spell-checker, an RSS reader and a new search engine manager.

Since then, however, complaints have become more visible than ever. When the final beta of Firefox 2.0 was released last year, the bloat controversy spilled over on popular geek community site Slashdot.

"I really wish Firefox would go back to the lightweight browser it once was," one commenter wrote. "The power was the ability to have extensions to do anything you wanted, but it was my choice which ones I wanted using my system resources."

Firefox developers have so far ignored that advice. More enhancements, such as a data manager for microformats, are expected when Firefox 3 arrives in late 2007. If the suggestions playing out on blogs, forums and bulletin boards are any indication, however, a return to Firefox's original principles of modular design may be the most desired feature for the next release.

Mozilla's Schroepfer says so-called feature creep is always a concern to his coders. To counteract that, he says, the main criterion for accepting new features has been that they enhance the browser without bogging it down.

"The general philosophy, and one of the reasons it takes so long to get features in the browser, is that any new features should not affect the startup time or performance of the browser," he says.

To keep the bulk down, Schroepfer says his team sets a high threshold for the addition of features. New features aren't built in unless they are useful to at least 90 percent of Firefox's users.

"If power users want something richer than that, they can turn to extensions," he says.

Despite those safeguards, some now-standard features could be adversely affecting performance.

Firefox's page-cache mechanism, for example, introduced in version 1.5, stores the last eight visited pages in the computer's memory. Caching pages in memory allows faster back browsing, but it can also leave a lot less memory for other applications to use. Less available RAM equals a less-responsive computer.

Firefox addresses this issue somewhat, setting the default cache lower on computers with less than a gigabyte of RAM.

Though the jury is still out on where the perfect balance between too many and too few features lies, one truth is apparent: The new web is pushing our browsers to the limit.

Ajax, Flash and other rich application technologies certainly do threaten to push the browser harder than it can handle, but those developments are irreversible. Unfortunately, as the web has grown, so have user expectations.

"The real cause of web bloat and feature creep is the rich content offered on the web these days, which goes so far beyond vanilla HTML in its performance demands," says open-source advocate Bruce Perens.

Another equally potent factor could be pushing Firefox inexorably toward complexity.

Slowly but surely, Internet Explorer is catching up to Firefox. In IE7, Microsoft added tabbed browsing and integrated RSS support to its browser. If Firefox is going to continue to compete, it will need to up the ante, but it must do so without making users add extensions (and possibly introduce those compatibility problems).

"I do believe that Firefox must contain more 'awesome' functionality out of the box," says blogger Chris Pirillo. "Otherwise, you're having to run a browser with a zillion plug-ins -- and none of them aware that other plug-ins might be running."

For the record, Pirillo says he swears by the lightweight Maxthon browser.

Source: wired.com

Wednesday, May 16, 2007

15 Coolest Firefox Tricks Ever

Everybody’s favorite open-source browser, Firefox, is great right out of the box. And by adding some of the awesome extensions available out there, the browser just gets better and better.

But look under the hood, and there are a bunch of hidden (and some not-so-secret) tips and tricks available that will crank Firefox up and pimp your browser. Make it faster, cooler, more efficient. Get to be a Jedi master with the following cool Firefox tricks.

1) More screen space. Make your icons small. Go to View - Toolbars - Customize and check the “Use small icons” box.

2) Smart keywords. If there’s a search you use a lot (let’s say IMDB.com’s people search), this is an awesome tool that not many people use. Right-click on the search box, select “Add a Keyword for this search”, give the keyword a name and an easy-to-type and easy-to-remember shortcut name (let’s say “actor”) and save it. Now, when you want to do an actor search, go to Firefox’s address bar, type “actor” and the name of the actor and press return. Instant search! You can do this with any search box.

3) Keyboard shortcuts. This is where you become a real Jedi. It just takes a little while to learn these, but once you do, your browsing will be super fast. Here are some of the most common (and my personal favs):

  • Spacebar (page down)
  • Shift-Spacebar (page up)
  • Ctrl+F (find)
  • Alt-N (find next)
  • Ctrl+D (bookmark page)
  • Ctrl+T (new tab)
  • Ctrl+K (go to search box)
  • Ctrl+L (go to address bar)
  • Ctrl+= (increase text size)
  • Ctrl+- (decrease text size)
  • Ctrl-W (close tab)
  • F5 (reload)
  • Alt-Home (go to home page)

4) Auto-complete. This is another keyboard shortcut, but it’s not commonly known and very useful. Go to the address bar (Control-L) and type the name of the site without the “www” or the “.com”. Let’s say “google”. Then press Control-Enter, and it will automatically fill in the “www” and the “.com” and take you there - like magic! For .net addresses, press Shift-Enter, and for .org addresses, press Control-Shift-Enter.

5) Tab navigation. Instead of using the mouse to select different tabs that you have open, use the keyboard. Here are the shortcuts:

  • Ctrl+Tab (rotate forward among tabs)
  • Ctrl+Shft+Tab (rotate to the previous tab)
  • Ctrl+1-9 (choose a number to jump to a specific tab)

6) Mouse shortcuts. Sometimes you’re already using your mouse and it’s easier to use a mouse shortcut than to go back to the keyboard. Master these cool ones:

  • Middle click on link (opens in new tab)
  • Shift-scroll down (previous page)
  • Shift-scroll up (next page)
  • Ctrl-scroll up (decrease text size)
  • Ctrl-scroll down (increase text size)
  • Middle click on a tab (closes tab)

7) Delete items from address bar history. Firefox’s ability to automatically show previous URLs you’ve visited, as you type, in the address bar’s drop-down history menu is very cool. But sometimes you just don’t want those URLs to show up (I won’t ask why). Go to the address bar (Ctrl-L), start typing an address, and the drop-down menu will appear with the URLs of pages you’ve visited with those letters in them. Use the down-arrow to go down to an address you want to delete, and press the Delete key to make it disappear.

8) User chrome. If you really want to trick out your Firefox, you’ll want to create a UserChrome.css file and customize your browser. It’s a bit complicated to get into here, but check out this tutorial.

9) Create a user.js file. Another way to customize Firefox, creating a user.js file can really speed up your browsing. You’ll need to create a text file named user.js in your profile folder (see this to find out where the profile folder is) and see this example user.js file that you can modify. Created by techlifeweb.com, this example explains some of the things you can do in its comments.

10) about:config. The true power user’s tool, about.config isn’t something to mess with if you don’t know what a setting does. You can get to the main configuration screen by putting about:config in the browser’s address bar. See Mozillazine’s about:config tips and screenshots.

11) Add a keyword for a bookmark
. Go to your bookmarks much faster by giving them keywords. Right-click the bookmark and then select Properties. Put a short keyword in the keyword field, save it, and now you can type that keyword in the address bar and it will go to that bookmark.

12) Speed up Firefox. If you have a broadband connection (and most of us do), you can use pipelining to speed up your page loads. This allows Firefox to load multiple things on a page at once, instead of one at a time (by default, it’s optimized for dialup connections). Here’s how:

  • Type “about:config” into the address bar and hit return. Type “network.http” in the filter field, and change the following settings (double-click on them to change them):
  • Set “network.http.pipelining” to “true”
  • Set “network.http.proxy.pipelining” to “true”
  • Set “network.http.pipelining.maxrequests” to a number like 30. This will allow it to make 30 requests at once.
  • Also, right-click anywhere and select New-> Integer. Name it “nglayout.initialpaint.delay” and set its value to “0″. This value is the amount of time the browser waits before it acts on information it receives.

13) Limit RAM usage. If Firefox takes up too much memory on your computer, you can limit the amount of RAM it is allowed to us. Again, go to about:config, filter “browser.cache” and select “browser.cache.disk.capacity”. It’s set to 50000, but you can lower it, depending on how much memory you have. Try 15000 if you have between 512MB and 1GB ram.

14) Reduce RAM usage further for when Firefox is minimized. This setting will move Firefox to your hard drive when you minimize it, taking up much less memory. And there is no noticeable difference in speed when you restore Firefox, so it’s definitely worth a go. Again, go to about:config, right-click anywhere and select New-> Boolean. Name it “config.trim_on_minimize” and set it to TRUE. You have to restart Firefox for these settings to take effect.

15) Move or remove the close tab button. Do you accidentally click on the close button of Firefox’s tabs? You can move them or remove them, again through about:config. Edit the preference for “browser.tabs.closeButtons”. Here are the meanings of each value:

  • 0: Display a close button on the active tab only
  • 1:(Default) Display close buttons on all tabs
  • 2:Don’t display any close buttons
  • 3:Display a single close button at the end of the tab bar (Firefox 1.x behavior)
Source: lifehack.org