Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
firefox [2010/07/24 20:42] greebo |
firefox [2014/01/30 10:27] (current) zagi [Speeding up Firefox] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Firefox ====== | ====== Firefox ====== | ||
| - | [[firefox addons]]\\ | + | [[firefox:addons]]\\ |
| [[greasemonkey]]\\ | [[greasemonkey]]\\ | ||
| - | [[firefox# | ||
| [[firefox# | [[firefox# | ||
| - | [[firefox# | + | [[firefox# |
| + | Optimized Firefox [[firefox: | ||
| - | === Firefox config optimizations === | ||
| - | http:// | ||
| - | === Firefox hardware acceleration | + | === FIX Crashing X-window with ATI drivers while moving toolbar icons == |
| - | http:// | + | |
| - | === user.js === | + | nglayout.enable_drag_images false |
| - | [[http:// | + | |
| - | user.js file is located in your Firefox profile folder: | ||
| - | In Windows XP, the profile folder is | + | === Move disk cache onto RAMdisk === |
| - | \Documents and Settings\< | + | |
| - | In Windows Vista, this folder is | + | use tmpfs in linux |
| - | \Users\< | + | |
| - | Note that Application Data and AppData are hidden folders by default, so they may not show up unless you force Explorer | + | add to /etc/fstab: |
| - | In Mac OS X, the profile folder is | + | tmpfs /mnt/ramdisk tmpfs size=520M, |
| - | < | + | |
| - | and in Linux it's | + | use rmdisk |
| - | ~/.mozilla/firefox/<profile ID>.default/ | + | |
| - | = Make Firefox 4.0beta (Minefield) work with "incompatible" | + | imdisk.exe -a -s 200M -m R: -S 4096 -p "/fs:exFAT /q /y" |
| - | user_pref(" | + | http://www.softperfect.com/ |
| - | (for release version use " | + | in about: |
| + | browser.cache.disk.parent_directory | ||
| + | browser.cache.disk.capacity 190000 | ||
| - | <code javascript> | ||
| - | # no blinking text | ||
| - | user_pref(" | ||
| - | # | ||
| - | // | ||
| - | user_pref(" | ||
| - | user_pref(" | ||
| - | user_pref(" | ||
| - | user_pref(" | ||
| - | user_pref(" | ||
| - | user_pref(" | ||
| - | user_pref(" | ||
| - | user_pref(" | ||
| - | user_pref(" | ||
| - | // keep-alive timeout. default is 115 | ||
| - | user_pref(" | ||
| - | // Enable prefetching | ||
| - | user_pref(" | ||
| - | // Disable offline mode | ||
| - | user_pref(" | ||
| - | # | ||
| - | user_pref(" | ||
| - | // Just to make sure, disable windows shell: protocol | ||
| - | user_pref(" | ||
| - | # | ||
| - | // DNS | ||
| - | user_pref(" | ||
| - | user_pref(" | ||
| - | # | ||
| - | // Remove painting delay when loading pages. Default is 250 | ||
| - | user_pref(" | ||
| - | # | ||
| - | user_pref(" | ||
| - | # | ||
| - | user_pref(" | ||
| - | user_pref(" | ||
| - | user_pref(" | ||
| - | user_pref(" | ||
| - | user_pref(" | ||
| - | user_pref(" | ||
| - | user_pref(" | ||
| - | # | ||
| - | # Cache | ||
| - | user_pref(" | ||
| - | # Disable disk cache - using only RAM | ||
| - | # | ||
| - | user_pref(" | ||
| - | # | ||
| - | # Specify the amount of memory cache: | ||
| - | # -1 = determine dynamically (default), 0 = none, n = memory capacity in kilobytes | ||
| - | user_pref(" | ||
| - | # How many sites to remember for back/ | ||
| - | user_pref(" | ||
| - | # | ||
| - | # Move Firefox out of working memory to swap memory on minimize. Windows ONLY! | ||
| - | # | ||
| - | # | ||
| - | # Allow certain sites to acces local files | ||
| - | user_pref(" | ||
| - | user_pref(" | ||
| - | user_pref(" | ||
| - | # | ||
| - | # Location address functions | ||
| - | user_pref(" | ||
| - | user_pref(" | ||
| - | user_pref(" | ||
| - | # | ||
| - | user_pref(" | ||
| - | user_pref(" | ||
| - | user_pref(" | ||
| - | user_pref(" | ||
| - | // Open new windows in tab | + | === Make Firefox |
| - | user_pref(" | + | |
| - | # | + | |
| - | # | + | |
| - | user_pref(" | + | |
| - | # make all frames resizeable | + | |
| - | user_pref(" | + | |
| - | # disable target=" | + | |
| - | user_pref(" | + | |
| - | # Stop reusing active windows: | + | |
| - | user_pref(" | + | |
| - | # do not close Firefox | + | |
| - | user_pref (" | + | |
| - | // extensions/ | + | |
| - | # do NOT scan for additional plugins on local computer | + | |
| - | user_pref (" | + | |
| - | user_pref(" | + | |
| - | // disable addon countdown | + | |
| - | user_pref(" | + | |
| - | // Show full path for plugin file on about: | + | |
| - | // the full path was removed for security purposes, please keep that in mind | + | |
| - | // Note: showing full paths can be a security risk only use when debugging. | + | |
| - | user_pref(" | + | |
| - | # | + | |
| - | # disable javascript annoyances | + | |
| - | ## user_pref(" | + | |
| - | user_pref(" | + | |
| - | user_pref(" | + | |
| - | # | + | |
| - | user_pref(" | + | |
| - | // Shows an error page instead of an error popup dialog | + | find nsLoginManager.js\\ |
| - | //if you load multiple pages at the same the dialog box actually holds up the browser | + | \\ |
| - | | + | linux |
| - | | + | /usr/lib/xulrunner-1.9.1.5/components/ |
| + | \\ | ||
| + | windows | ||
| + | C:\Program Files\Mozilla Firefox\nsLoginManager.js) | ||
| + | \\ | ||
| + | Once you've found that file, open it in an editor, and find the section that has isAutoCompleteDisabled, | ||
| + | |||
| + | < | ||
| + | | ||
| + | * _isAutoCompleteDisabled | ||
| + | * | ||
| + | * Returns true if the page requests autocomplete be disabled for the | ||
| + | * specified form input. | ||
| + | */ | ||
| + | _isAutocompleteDisabled : function | ||
| + | // if (element && element.hasAttribute(”autocomplete”) && | ||
| + | // element.getAttribute(”autocomplete”).toLowerCase() == “off”) | ||
| + | // return true; | ||
| + | |||
| + | return false; | ||
| + | }, | ||
| </ | </ | ||
| + | |||
| + | In recent FF versions the nsLoginManager.js file is located in the " | ||
| + | You'd have to open omni.jar with an unarchiver tool and look for your file in the " | ||
| + | After the modification select all files/ | ||
| + | |||
| + | |||
| + | === Make old Firefox add-ons " | ||
| + | Find in install.rdf section similar to this: | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | and change maxVersion to something higher... | ||
| + | |||
| + | === Firefox config optimizations === | ||
| + | http:// | ||
| + | |||
| + | === Firefox hardware acceleration === | ||
| + | http:// | ||
| === about_url === | === about_url === | ||
| Line 250: | Line 188: | ||
| check SQLoptimizer add-on!\\ | check SQLoptimizer add-on!\\ | ||
| + | |||
| + | |||
| + | <note important> | ||
| + | |||
| + | |||
| Firefox insists on doing huge amounts of I/O when closing, as well as act slow when using the awesomebar, try the following (close down Firefox completely first): | Firefox insists on doing huge amounts of I/O when closing, as well as act slow when using the awesomebar, try the following (close down Firefox completely first): | ||
| + | |||
| < | < | ||
| - | | + | # |
| + | killall firefox | ||
| + | killall thunderbird | ||
| + | du -hs ~/ | ||
| + | du -hs ~/ | ||
| + | for f in ~/ | ||
| + | for f in ~/ | ||
| + | du -hs ~/ | ||
| + | du -hs ~/ | ||
| </ | </ | ||
| Line 260: | Line 212: | ||
| Win32 .bat file: | Win32 .bat file: | ||
| < | < | ||
| - | for %%v in (*.sqlite) do sqlite3 "%%v" VACUUM; | + | @echo off |
| + | setlocal | ||
| + | pushd | ||
| + | |||
| + | REM IF EXIST " | ||
| + | REM IF EXIST " | ||
| + | REM IF EXIST " | ||
| + | |||
| + | set profiles=%APPDATA%\Thunderbird\Profiles | ||
| + | |||
| + | cd /d %profiles% | ||
| + | |||
| + | for /r %%a in (*.sqlite) do ( | ||
| + | echo %%a | ||
| + | sqlite3 "%%a" VACUUM; | ||
| + | | ||
| + | ) | ||
| + | |||
| + | set profiles=%APPDATA%\Mozilla\Firefox\Profiles | ||
| + | cd /d %profiles% | ||
| + | |||
| + | for /r %%a in (*.sqlite) do ( | ||
| + | echo %%a | ||
| + | | ||
| + | | ||
| + | ) | ||
| + | |||
| + | set profiles=%APPDATA%\Moonchild Productions\Pale Moon\profiles | ||
| + | |||
| + | cd /d %profiles% | ||
| + | |||
| + | for /r %%a in (*.sqlite) do ( | ||
| + | echo %%a | ||
| + | | ||
| + | | ||
| + | ) | ||
| + | |||
| + | |||
| + | popd | ||
| </ | </ | ||
| It’s harmless, no data will be lost: it compacts your **__[[sqlite]]__** databases. | It’s harmless, no data will be lost: it compacts your **__[[sqlite]]__** databases. | ||
| - | |||
| ==== cpu optimized builds ==== | ==== cpu optimized builds ==== | ||

