473,406 Members | 2,220 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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:absolute, 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...

--
Erik Sandblom
my site is EriksRailNews.com

Jul 23 '05 #1
7 2914
On Wed, 09 Mar 2005 16:53:25 +0100, Erik Sandblom
<er***@operamail.com> wrote:
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:absolute, the problem goes away, but the tooltips move around with
the containing, scrolling div.


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.javascript FAQ - http://jibbering.com/faq/

Jul 23 '05 #2
i artikel 42***************@news.individual.net, skrev Jim Ley på
ji*@jibbering.com den 05-03-09 17.10:
any fixed elements severely impact performance in all browsers, think
about what has to happen, and I hope it'll be obvious why.

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.com

Jul 23 '05 #3
On Wed, 09 Mar 2005 17:52:41 +0100, Erik Sandblom
<er***@operamail.com> wrote:
i artikel 42***************@news.individual.net, skrev Jim Ley på
ji*@jibbering.com den 05-03-09 17.10:
any fixed elements severely impact performance in all browsers, think
about what has to happen, and I hope it'll be obvious why.

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?


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.javascript FAQ - http://jibbering.com/faq/

Jul 23 '05 #4

"Jim Ley" <ji*@jibbering.com> wrote in message
news:42***************@news.individual.net...
On Wed, 09 Mar 2005 17:52:41 +0100, Erik Sandblom
<er***@operamail.com> wrote:
i artikel 42***************@news.individual.net, skrev Jim Ley på
ji*@jibbering.com den 05-03-09 17.10:
any fixed elements severely impact performance in all browsers, think
about what has to happen, and I hope it'll be obvious why.

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?


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.
--


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.


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

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?


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.

Jul 23 '05 #6

--

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/>.
Jul 23 '05 #7
Erik Sandblom wrote:

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:absolute, 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...


This might be a symptom of Mozilla bug #124150. See
<URL:https://bugzilla.mozilla.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/>.
Jul 23 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Patrice | last post by:
There seems to be a bug with the events mouseOut and mouseOver of divs when their position is fixed : when you enter the div with the mouse, three events are fired in this order : over, out, over....
5
by: Grayle | last post by:
I've heard that "position:fixed", which I use to scroll a navigation menu, does not work in IE. I have limited access to IE and would prefer to keep it that way. I am using <div class="nav">...
9
by: Paul Trautwein | last post by:
I'm trying to get an image to float in a window despite scrolling. I've gotten it to work on my Mac using IE 5.2, Netscape, and Safari, but it goes wonky when I test it on a PC. (testing with IE...
4
by: Peter Fjelsten | last post by:
Guys at comp.infosystems.www.authoring.stylesheets, I have designed a page in (x)HTML transitional that I am happy with in (close to) standard compliant browsers (i.e. Firebird/Opera), but IE...
5
by: Ted Mayett | last post by:
I've read a lot through the google archives, but I cannot seem to find an example... Has someone successfully made css code that allows for position: fixed to work in IE 6.0.2800? What is the...
11
by: Mathias Wrede | last post by:
Hi, is there anybody who can give me a hint?. I would like to create a fixed positioned navigation area. There are no probs with correct working browsers (FF, Opera, Konqueror etc.). The...
2
by: Eric Lindsay | last post by:
Googling suggests that IE7 may support position: fixed; I think this might be handy for some pages I want to do. Does anyone have any comments about whether fixed should be considered for use on...
5
by: pbd22 | last post by:
hi. i am messing around with CSS2.1 and position:fixed. I can't seem to get a "loading" span to move a little further left onto the page. It seems stuck on the upper right and kind of half way...
8
by: sheldonlg | last post by:
I have an app where position fixed works for FF and IE6 (with workaround). On IE7, the popup doesn't stay fixed in one place. The URL is http://www.sheldonlg.com/popup/popupLoc.html Click of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.