Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > document.body.clientWidth

Thread Tools

Posts: n/a
Our site has a menu with some submenus that is implemented using some
javascript to determine the position of where to display the submenus.

To do this, it does a document.body.clientWidth and some other stuff
and does some calculations based on that.

We have one page where the submenus are incredibly slow in
displaying. I tracked it down to the statement that gets the

Does anyone know what to look at as far as what might be different on
this page that would cause it to be so much slower? Would it be
related to the # of elements on the page - this page is the biggest
form on our site, and there are a lot of elements, but besides that,
there's really not much that's different.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off