Alex Rivera | Logout

Detecting when Javascript is performing poorly

Asked 2010-03-19T07:57:04.903
16

I'm working on a webapp in jquery that, on older machines or machines without much resources, may perform poorly. To get around this I'd like to make a degraded version that disables some of the features, particularly those that rely on large images.

How can I tell if my app is running poorly on the user's computer in jquery or javascript in general? I just need a way to call a function that will degrade the app. (especially when the user may run low on system memory)

The only way I can think of is for manual user intervention, but the option would add clutter for users that don't need it and users that do need it may not notice it.

Thanks!

Edit
Report

2 Answers

0

Could you just code a javascript function that runs a controlled test, timing the result, then use this as a basis for degrading the site?

Maybe a smaller version of one of the tests out of SunSpider, for example

answered 2010-03-19T08:01:47.620
0

Have you already done everything to make the application faster?

For instance, you could run the application through the Firebug profiler, and examine the performance of the whole system using YSlow.

answered 2010-03-19T12:15:52.843

Your Answer