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?