#229 ✓resolved
yuanyi

好友头像load得太慢

Reported by yuanyi | 2009-11-22 23:49:30 UTC | in 1.0.7

在一个活动中,我打算邀请所有友邻(575位),每次打开都要停很久,计算了一下,Safari要停4分钟,Firefox好点,大约20秒,但同样的在豆瓣就几乎不用等待。同学们能不能优化一下?

元一,博涵

三个点可以优化:
去掉图片后面的时间戳
apache 上加上对静态文件的本地缓存(expire / etag ?)
用一个二级域名来指向所有的静态文件(static.1kg.org ?),可以让页面和静态文件并行下载
请评估一下方法和工作量

Comments and changes to this ticket

  • suave

    suave 2009-12-02 10:15:55 UTC

    • Milestone changed from “1.0.6” to “1.0.7”
  • suave

    suave 2009-12-02 10:47:31 UTC

    page layout 里面有一段代码:

    <script charset="utf-8" type="text/javascript">
    $('#content-primary .boxInner img').removeAttr('height');
    $('#content-primary .boxInner img').each(function(){if($(this).attr('width') > 580){$(this).attr('width',580)}})
    </script>
    
    造成的,jquery 一次处理的过多的元素

    请和博涵沟通一下解决办法

  • yuanyi

    yuanyi 2009-12-02 11:35:13 UTC

    • State changed from “new” to “resolved”

    通过CSS解决了

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Pages