> 1/ detect user setup or perform some tests, to determine the available CPU, 
> graphic Card, RAM, browser,OS. It may not even be necessary to know these 
> datas, if we run a test that just tells us if the end user specs are speedy 
> or not.
> 2/ send a different javscript file according to the results of the benchmark.
>
> Has anyone done somethiing similaror have any thought about this?

You won't be able to determine gfx card, ram, etc... in javascript.
(except for the window size)
You can find the browser and os in the user agent, see $.browser or
this plugin :
http://davecardwell.co.uk/javascript/jquery/plugins/jquery-browserdetect/

As for the CPU benchmark I had some old links in my bookmarks :

The first one is in french. I think it's not accurate at all
http://www.toutjavascript.com/main/script.php3?url=evalcpu

And there was another called BenchJS but the link is down. Maybe you
should google about this one.

But keep in mind that theoretically, there's no such as thing as
hardware detection in javascript browser's implementation. (for the
moment)

-- 
Fabien Meghazi

Website: http://www.amigrave.com
Email: [EMAIL PROTECTED]
IM: [EMAIL PROTECTED]

Reply via email to