Posts Tagged ‘Chrome’

  • Speed up Our Firefox Browser

    Date: 2009.04.02 | Category: Software, Web Front-end | Response: 3

    So far as we know, Fire­fox is a power­ful and easy-of-use web bro­wser in the world. Alth­rough Chrome is beco­ming better and better, but without exten­sion fun­ctions, Goo­gle Chrome will always be my second choice to use. Indeed, Chrome is much qui­cker than Fire­fox, while it spends more memory spa­ces for its San­dBox model.

    Recen­tly, I saw an arti­cle talked about how to speed up fire­fox by edi­ting some para­me­ters in about:config. Let’s have a try!

    Reduce the amount of RAM Fire­fox uses for its cache fea­ture

    1. Type “about:config” (no quo­tes) in the adress bar in the bro­wser.
    2. Find “browser.sessionhistory.max_total_viewer”
    3. Set it’s value to “0“;(Zero)

    Inc­rease the Speed at Which Fire­fox loads pages

    1. Type “about:config” into the add­ress bar and hit Enter.
    2. Alter the ent­ries as follows:
    Set “network.http.pipelining” to “true”
    Set “network.http.proxy.pipelining” to “true”
    Set “network.http.pipelining.maxrequests” to some number like 10.

    This means it will make 10 reque­sts at once.

    3. Lastly, right-click anywhere and select New-> Inte­ger. Name it “nglayout.initialpaint.delay” and set its value to “0“;.(Zero)

    This value is the amount of time the bro­wser waits before it acts on info­r­ma­tion it receives. If you’re using a broa­dband con­ne­ction you’ll load pages faster now.
    Optio­na­lly (for even faster web bro­wsing) here are some more options for your about:config (you might have to create some of these ent­ries by Right Click –> New– > Inter­ger or String

    network.dns.disableIPv6: set “false”
    “content.notify.backoffcount”: set “5“; (Five)
    “plugin.expose_full_path”: set “true”.
    “ui.submenuDelay”: set “0; (zero)

    Reduce RAM usage to 10MB when Fire­fox is mini­mi­zed:

    This little hack will drop Firefox’s RAM usage down to 10 Mb when minimized:

    1. Open Fire­fox and go to the Add­ress Bar. Type in about:config and then press Enter.
    2. Right Click in the page and select New -> Boo­lean.
    3. In the box that pops up enter “config.trim_on_minimize”. Press Enter.
    4. Now select True and then press Enter.
    5. Restart Firefox.

    That’s all! After my trying, I think it rea­lly faster a little bit than before. Great!

    The ori­gi­nal link is: http://www.dagorret.net/2009/03/25/a-handful-of-firefox-tweaks-that-will-double-your-browser-speed/

    • Share/Bookmark
  • IE6里准确显示较小高度的DIV

    Date: 2009.03.23 | Category: Web Front-end | Response: 1

    在做网页设计的时候,尤其是给咱们国内做网站,一定要考虑到兼容性的问题。Firefox、Chrome、Safari、IE8这类对于CSS标准支持的比较好的网站,基本上测试一种就差不多行了(一些Javascript除外)。但是对于IE6IE7这两个浏览器,要区别对待。特别是IE6,支持CSS一点都不好,自己说了算,但是在国内却有数量庞大的电脑依然在使用IE6浏览器。我想这与安装了盗版XP并禁用了自动更新功能有关吧。

    转到今天的主要话题。在给一个朋友做网站的时候,发现有个小问题。在我定义的一个div层中,只有一条横线,高度为4px。在IE8、Firefox、Chrome中均显示正确,但是在IE6中却显示出了三条线,而这个div的高度也增加为15px。于是我将高度设成10px,依然不见效,但是设置成30px的时候,高度就增加出来了。这说明这个div盒子里面并不是空的,尽管我在<div></div>中间连一个空格也没有。

    没错,这就是字体虚占位了。IE6默认按照字体大小min-height了一下这个div层,才会出现如此的问题。所以我们将计就计,把字体大小设成0不就好了?再加上一个overflow的hidden,一切就完美了。

    建议定义一个css的class来处理这类的问题,我是这么干的:

    .miniboxhack{font-size:0; overflow:hidden;}

    问题解决了。

    • Share/Bookmark

Paul’s Online Services

Dynamic Tag Cloud

Recent Posts

Recent Comments

Tags

2008.11.Trip-of-GuangXi ASP.net C++ China Chrome css dotNet FCGuoAn Firefox Football gmail IBM IE IIS IT Association Joke Microsoft music mysql NLP Nokia ntfs NumPy OpenSolaris open source Open Team php pidgin PKUSS Python Python Challenge qq Samba SciPy Learning shell solaris SQL SUN Thunderbird Travel web host Win 7 WordPress X11 zfs