Toshiba Help Center

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Monday, 25 June 2007

Hacking Firefox: The secrets of about:config Speed up

Posted on 20:31 by Unknown
Speed up page display


Some of the more recent Firefox customizations I've examined are ways to speed up the rendering of Web pages. The settings to do this are a little arcane and not terribly self-explanatory, but with a little tinkering, you can often get pages to pop up faster and waste less time redrawing themselves.

Start rendering pages faster
Creating an nglayout.initialpaint.delay integer preference lets you control how long Firefox waits before starting to render a page. If this value isn't set, Firefox defaults to 250 milliseconds, or 0.25 of a second. Some people report that setting it to 0 -- i.e., forcing Firefox to begin rendering immediately -- causes almost all pages to show up faster. Values as high as 50 are also pretty snappy.

Reduce the number of reflows
When Firefox is actively loading a page, it periodically reformats or "reflows" the page as it loads, based on what data has been received. Create a content.notify.interval integer preference to control the minimum number of microseconds (millionths of a second) that elapse between reflows. If it's not explicitly set, it defaults to 120000 (0.12 of a second).

Too many reflows may make the browser feel sluggish, so you can increase the interval between reflows by raising this to 500000 (500,000, or 1/2 second) or even to 1000000 (1 million, or 1 second). If you set this value, be sure to also create a Boolean value called content.notify.ontimer and set it to true.

A page

A page "reflowing" while loading in Firefox.

Control Firefox's 'unresponsive' time
When rendering a page, Firefox periodically runs a little faster internally to speed up the rendering process (a method Mozilla calls "tokenizing"), but at the expense of being unresponsive to user input for that length of time. If you want to set the maximum length of time any one of these unresponsive periods can be, create an integer preference called content.max.tokenizing.time.

Set this to a multiple of content.notify.interval's value, or even the same value (but higher is probably better). If you set this to something lower than content.notify.interval, the browser may respond more often to user input while pages are being rendered, but the page itself will render that much more slowly.

If you set a value for content.max.tokenizing.time, you also need to create two more Boolean values -- content.notify.ontimer and content.interrupt.parsing -- and set them both to true.

Control Firefox's 'highly responsive' time
If Firefox is rendering a page and the user performs some kind of command, like scrolling through a still-loading page, Firefox will remain more responsive to user input for a period of time. To control how long this interval is, create an integer preference called content.switch.threshold.

This is normally triple the value of content.notify.interval, but I typically set it to be the same as that value. Set it to something very low -- say, 10000 (10,000 microseconds) -- and the browser may not respond as snappily, but it may cause the rendering to complete more quickly.

If you haven't already created the Boolean values content.notify.ontimer and content.interrupt.parsing and set them both to true in conjunction with content.max.tokenizing.time, you'll need to do so to make content.switch.threshold work properly.

If you are more inclined to wait for a page to finish loading before attempting to do anything with it (like scroll through it), you can set content.max.tokenizing.time to a higher value and content.switch.threshold to a lower value to allow Firefox to finish rendering a page faster at the expense of processing user commands. On the other hand, if you're the kind of person who likes to scroll through a page and start reading it before it's done loading, you can set content.max.tokenizing.time to a lower value and content.switch.threshold to a higher one, to give you back that much more responsiveness at the cost of page-rendering speed.

Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in firefox | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Toshiba's stylish Tekbright 7 digital photo frame
    As the barrage of new Toshiba gear continues to flow from Paris, along comes a device that we ...
  • 20 Open Source Windows Apps For You
    Some of the commercial software like Photoshop are so expensive that an average user can not afford to buy it. Lately I am looking for some ...
  • Mortgage insurance
    Mortgage Life Insurance refers to an insurance policy that guarantees repayment of a mortgage loan in the event of death or, possibly, di...
  • So You Want To Be An Affiliate Marketer
    If you're like 99% of the population, you have some interest that you are passionate about. Maybe it's travel, or sports or animals....
  • Windows XP Home and Professional Command Line Commands | Run Line Commands
    One big negative of being a desktop specialist can be the daunting task for browsing through multiple directorys and/or shortcuts to find ma...
  • Money
    Economics offers various definitions for money, though it is now commonly defined as any good or token that functions as a medium of exchang...
  • Performance bond
    A performance bond is a surety bond issued by an insurance company to guarantee satisfactory completion of a project by a contractor. For ex...
  • MBA
    Master of Business Administration (MBA) is a master’s degree in business administration, which attracts people from a wide range of academic...
  • Steam Powered Car to Hit 200MPH
    This is the Inspiration, the British steam powered car that is attempting to take the British and World land speed records (for steam vehicl...
  • Asian currencies get lift from rising shares
    BEIJING: Rising Asian shares buoyed most regional currencies on Friday, with the Philippine peso leading the pack after the central bank in...

Categories

  • accessories
  • aid
  • application
  • banks
  • broker
  • business
  • business.news
  • casual
  • credit
  • education
  • firefox
  • forex
  • gadgets
  • games
  • help
  • internet
  • laws
  • linux
  • mechanical
  • media
  • microsoft
  • mobile
  • newa
  • news
  • online
  • scripts
  • technology
  • tems
  • terms
  • training
  • windows application
  • windows tweaks

Blog Archive

  • ▼  2007 (149)
    • ►  August (14)
    • ►  July (120)
    • ▼  June (15)
      • How do you burn a 760mb iso file into a 700mb cd-r...
      • How to copy a DVD
      • The folder option in my control panel has been dis...
      • How to Install Windows Vista-illustrated
      • How Do I Add A Logo And Support Information To My ...
      • How Do I Install Windows XP-illustrated For Beginner
      • High Yield Investment Program
      • Hacking Firefox: The secrets of about:config Stop ...
      • Hacking Firefox: The secrets of about:config Hack ...
      • Hacking Firefox: The secrets of about:config User ...
      • Hacking Firefox: The secrets of about:config Tabbe...
      • Hacking Firefox: The secrets of about:config Speed up
      • Hacking Firefox: The secrets of about:config
      • Investment
      • MBA
Powered by Blogger.

About Me

Unknown
View my complete profile