Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
firefox [2010/06/16 11:15] 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:// | ||
- | === user.js | + | === FIX Crashing X-window with ATI drivers while moving toolbar icons == |
- | [[http:// | + | |
- | user.js file is located in your Firefox profile folder: | + | nglayout.enable_drag_images false |
- | In Windows XP, the profile folder is | ||
- | \Documents and Settings\< | ||
- | In Windows Vista, this folder is | + | === Move disk cache onto RAMdisk === |
- | \Users\< | + | |
- | Note that Application Data and AppData are hidden folders by default, so they may not show up unless you force Explorer to show hidden objects. (Open the Control Panel, double-click Folder Options, select the View tab, select "Show hidden files and folders" | + | use tmpfs in linux |
- | In Mac OS X, the profile folder is | + | add to /etc/fstab: |
- | < | + | |
- | and in Linux it's | + | tmpfs /mnt/ramdisk tmpfs size=520M, |
- | ~/.mozilla/ | + | |
- | <code javascript> | + | use rmdisk in Windows |
- | # no blinking text | + | |
- | user_pref(" | + | |
- | # | + | |
- | // | + | |
- | user_pref(" | + | |
- | user_pref(" | + | |
- | user_pref(" | + | |
- | user_pref(" | + | |
- | user_pref(" | + | |
- | user_pref(" | + | |
- | user_pref(" | + | |
- | user_pref(" | + | |
- | user_pref(" | + | |
- | | + | |
- | user_pref(" | + | |
- | | + | |
- | user_pref(" | + | |
- | # | + | |
- | user_pref(" | + | |
- | | + | |
- | 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 | + | imdisk.exe -a -s 200M -m R: -S 4096 -p "/fs:exFAT /q /y" |
- | user_pref(" | + | |
- | # | + | |
- | #http:// | + | |
- | user_pref("network.http.sendRefererHeader", | + | |
- | # make all frames resizeable | + | |
- | user_pref(" | + | |
- | # disable target=" | + | |
- | user_pref(" | + | |
- | # Stop reusing active windows: | + | |
- | user_pref(" | + | |
- | # do not close Firefox with last tab | + | |
- | user_pref (" | + | |
- | | + | |
- | # 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:plugins page | + | |
- | | + | |
- | // 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(" | + | |
- | | + | http://www.softperfect.com/products/ramdisk/ |
- | | + | |
- | // using this will allow the other pages/elements to load for the rest of the pages | + | in about: |
- | | + | |
+ | | ||
+ | browser.cache.disk.capacity 190000 | ||
+ | |||
+ | |||
+ | === Make Firefox remember all forms and passwords === | ||
+ | |||
+ | find nsLoginManager.js\\ | ||
+ | \\ | ||
+ | linux | ||
+ | /usr/lib/ | ||
+ | \\ | ||
+ | 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 | ||
+ | * 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 238: | 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 248: | 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 ==== |