JavaScript performance detection - just use browser detection?

Status
Not open for further replies.
I'm developing a JavaScript application that has some non-essential functionality that is slow for older browsers (the main concern is the corporate IE6). I would like to warn (or possibly just disallow) users when they try to use this functionality. What is the best way to do this? Is there a quick generic performance test that I can run on the browser to let me know if it will be too slow? Or should I just use browser detection and single out the older browsers?
 

gnosis

Ars Tribunus Angusticlavius
8,339
Is this functionality something that can be broken apart into smaller pieces that you profile separately? You might be able to isolate a couple of methods and find some kind of a workaround. Moreover it might be easier to know the right thing to do if we knew more about what's technically being done that's so slow.

Edit: I don't say this to encourage excessive support for IE 6, but to encourage treating client-side performance as something that can be solved. There's very little being done today that would be unusably slow on a browser even as slow as IE 6 (and while it's a slow browser compared to current offerings, its major failings are other than performance).
 

Xavin

Ars Legatus Legionis
30,828
Subscriptor++
I don't say this to encourage excessive support for IE 6, but to encourage treating client-side performance as something that can be solved. There's very little being done today that would be unusably slow on a browser even as slow as IE 6 (and while it's a slow browser compared to current offerings, its major failings are other than performance).
True enough, but I don't think developers should waste any more of their time than they have to catering to its deficiencies.
 

wallinbl

Ars Legatus Legionis
14,319
Subscriptor
gnosis":2gqas7iu said:
Is this functionality something that can be broken apart into smaller pieces that you profile separately? You might be able to isolate a couple of methods and find some kind of a workaround. Moreover it might be easier to know the right thing to do if we knew more about what's technically being done that's so slow.
I use an HTML table that allows the user to sort on column headings and it is deadly slow on anything over ~200 rows in IE6, but fast as hell in IE7, 8, FF, etc to north of 2000 rows. It's a corporate intranet, so I don't care about IE6, but I wouldn't be interested in figuring it out, either.
 
Among other things, one component is a Google Maps interface. I'd love to solve some of the problems, but in general they are not solvable -- IE6 is just too slow, as wallinbl's example shows (which is actually a good example of nice-but-not-necessary functionality). I don't know about performance on other older browsers, but I think I will likely just do detection and omit the functionality for the slow ones.
 

Pont

Ars Legatus Legionis
26,160
Subscriptor
wallinbl":3qson2rl said:
gnosis":3qson2rl said:
Is this functionality something that can be broken apart into smaller pieces that you profile separately? You might be able to isolate a couple of methods and find some kind of a workaround. Moreover it might be easier to know the right thing to do if we knew more about what's technically being done that's so slow.
I use an HTML table that allows the user to sort on column headings and it is deadly slow on anything over ~200 rows in IE6, but fast as hell in IE7, 8, FF, etc to north of 2000 rows. It's a corporate intranet, so I don't care about IE6, but I wouldn't be interested in figuring it out, either.

200 rows shouldn't be that big of a problem for IE6.

Does it have drop-down lists in the table, per chance? Drop-down lists are not actually controls in IE6. They're Windows unto themselves (which is why it's a bitch to use CSS on them in IE6).
 
Status
Not open for further replies.