position:fixed slows Mozilla

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Erik Sandblom

    position:fixed slows Mozilla

    Hello

    I'm trying to make some tooltips which are position:fixed. It works fine in
    Opera and Safari/Konqueror, but in Firefox and Camino (ie Mozilla), it takes
    a few seconds for each tooltip to display, and then to get hidden. If I use
    position:absolu te, the problem goes away, but the tooltips move around with
    the containing, scrolling div.

    ..scroll { height: 400px; overflow: auto; }



    There are some missing alt tags so it doesn't validate, but I doubt that's
    the problem.

    Help! I hate browsers...

    --
    Erik Sandblom
    my site is EriksRailNews.c om

  • Jim Ley

    #2
    Re: position:fixed slows Mozilla

    On Wed, 09 Mar 2005 16:53:25 +0100, Erik Sandblom
    <eriks@operamai l.com> wrote:
    [color=blue]
    >I'm trying to make some tooltips which are position:fixed. It works fine in
    >Opera and Safari/Konqueror, but in Firefox and Camino (ie Mozilla), it takes
    >a few seconds for each tooltip to display, and then to get hidden. If I use
    >position:absol ute, the problem goes away, but the tooltips move around with
    >the containing, scrolling div.[/color]

    any fixed elements severely impact performance in all browsers, think
    about what has to happen, and I hope it'll be obvious why.

    The solution is to not use fixed elements - or pick a faster browser.

    Jim.
    --
    comp.lang.javas cript FAQ - http://jibbering.com/faq/

    Comment

    • Erik Sandblom

      #3
      Re: position:fixed slows Mozilla

      i artikel 422f1fb2.589968 02@news.individ ual.net, skrev Jim Ley på
      jim@jibbering.c om den 05-03-09 17.10:
      [color=blue]
      > any fixed elements severely impact performance in all browsers, think
      > about what has to happen, and I hope it'll be obvious why.[/color]


      I don't get it. If it's fixed, it's always in the same place, so no
      computation is necessary. Shouldn't fixed actually be faster?

      --
      Erik Sandblom
      my site is EriksRailNews.c om

      Comment

      • Jim Ley

        #4
        Re: position:fixed slows Mozilla

        On Wed, 09 Mar 2005 17:52:41 +0100, Erik Sandblom
        <eriks@operamai l.com> wrote:
        [color=blue]
        >i artikel 422f1fb2.589968 02@news.individ ual.net, skrev Jim Ley på
        >jim@jibbering. com den 05-03-09 17.10:
        >[color=green]
        >> any fixed elements severely impact performance in all browsers, think
        >> about what has to happen, and I hope it'll be obvious why.[/color]
        >
        >
        >I don't get it. If it's fixed, it's always in the same place, so no
        >computation is necessary. Shouldn't fixed actually be faster?[/color]

        Paint a picture. Now place a photograph on top of it, does it take
        more effort to leave the photograph in place on the page or have it
        move in line with the part of the picture you're looking at.

        Jim.
        --
        comp.lang.javas cript FAQ - http://jibbering.com/faq/

        Comment

        • Peter1968

          #5
          Re: position:fixed slows Mozilla


          "Jim Ley" <jim@jibbering. com> wrote in message
          news:422f36cc.6 4911117@news.in dividual.net...[color=blue]
          > On Wed, 09 Mar 2005 17:52:41 +0100, Erik Sandblom
          > <eriks@operamai l.com> wrote:
          >[color=green]
          > >i artikel 422f1fb2.589968 02@news.individ ual.net, skrev Jim Ley på
          > >jim@jibbering. com den 05-03-09 17.10:
          > >[color=darkred]
          > >> any fixed elements severely impact performance in all browsers, think
          > >> about what has to happen, and I hope it'll be obvious why.[/color]
          > >
          > >
          > >I don't get it. If it's fixed, it's always in the same place, so no
          > >computation is necessary. Shouldn't fixed actually be faster?[/color]
          >
          > Paint a picture. Now place a photograph on top of it, does it take
          > more effort to leave the photograph in place on the page or have it
          > move in line with the part of the picture you're looking at.
          >
          > Jim.
          > --[/color]

          Depends, can you see the painting at all? Is the photograph on top smaller
          than the painting? Is the colour combination jarring? C'mon Jim, you have
          to know these things, after all, one of the strengths of this particular
          newsgroup is the rigid adhering to precision.




          Comment

          • phil_gg04@treefic.com

            #6
            Re: position:fixed slows Mozilla

            >> any fixed elements severely impact performance in all browsers,
            think[color=blue][color=green]
            >> about what has to happen, and I hope it'll be obvious why.[/color]
            >I don't get it. If it's fixed, it's always in the same place, so no
            >computation is necessary. Shouldn't fixed actually be faster?[/color]

            This is all horribly complicated. For example, if I have a page that
            contains just a narrow column of text down the left hand side and I
            scroll it, do all the white pixels in the right portion of the page get
            moved around? (There's no need to move them.) It comes down to how
            much effort is needed to work out what needs to move and balancing that
            against "just moving everything". My experience is that Mozilla's
            performance with repainting around position:fixed elements is about the
            same as repainting around windows (e.g. dialogs) from other
            applications that are on top of it, i.e. nothing to worry about.

            Be careful though as there are some nasty bugs in Mozilla related to
            position:fixed elements when you try to move them using things like
            :hover and javascript. Some are improved in 1.8b1 but not all. Opera
            also has bugs with postion:fixed.

            --Phil.

            Comment

            • David Ross

              #7
              Re: position:fixed slows Mozilla


              --

              David E. Ross
              <URL:http://www.rossde.com/>

              I use Mozilla as my Web browser because I want a browser that
              complies with Web standards. See <URL:http://www.mozilla.org/>.

              Comment

              • David Ross

                #8
                Re: position:fixed slows Mozilla

                Erik Sandblom wrote:[color=blue]
                >
                > Hello
                >
                > I'm trying to make some tooltips which are position:fixed. It works fine in
                > Opera and Safari/Konqueror, but in Firefox and Camino (ie Mozilla), it takes
                > a few seconds for each tooltip to display, and then to get hidden. If I use
                > position:absolu te, the problem goes away, but the tooltips move around with
                > the containing, scrolling div.
                >
                > .scroll { height: 400px; overflow: auto; }
                >
                > http://transrail.se/new/ref-erik/
                >
                > There are some missing alt tags so it doesn't validate, but I doubt that's
                > the problem.
                >
                > Help! I hate browsers...[/color]

                This might be a symptom of Mozilla bug #124150. See
                <URL:https://bugzilla.mozill a.org/show_bug.cgi?id =124150>.

                --

                David E. Ross
                <URL:http://www.rossde.com/>

                I use Mozilla as my Web browser because I want a browser that
                complies with Web standards. See <URL:http://www.mozilla.org/>.

                Comment

                Working...