[thelist] Client side JavaScript or Server side CGI?

martin.p.burns at uk.pwcglobal.com martin.p.burns at uk.pwcglobal.com
Wed Jan 10 08:29:27 CST 2001

Memo from Martin P Burns of PricewaterhouseCoopers

-------------------- Start of message text --------------------


A CGI (called via SSI or some such) will give you much, much greater
compatibility across all browsers and platforms if all you care about is
whether you're dealing with ie5/Mac, Opera/Win, NS6/Linux etc.

XSSI will also work, with less of a performance hit, if you're running on

However, if you're needing to test for a specific JS capability, then
using JS would make sense.

Sure, a server-side solution will cost performance, but whether it's
significant will depend on your peak traffic compared to the meatiness
of the server and the well-writtenness of the script. Most really big sites
which take peak loads of thousands of users have a substantial amount
of server-side gubbins running - it's not necessarily A Bad Thing(tm).

Some high-load serverside application sites:

fwiw http://evolt.org/ should be able to take one hell of a load without
falling over.


Please respond to thelist at lists.evolt.org
To:   thelist at lists.evolt.org

Subject:  [thelist] Client side JavaScript or Server side CGI?

Hi Listees

For browser/platform detection for CSS do people consider it better to use a
client side JavaScript or a server side CGI script?

My thoughts are that Server side CGI might be better, putting the emphasis
on the server rather than the clients computer - but this would mean the
user accessing a CGI script from every page, which is probably not a good
idea (is it).

Any thoughts, or suggestions would be helpful.

--------------------- End of message text --------------------

The principal place of business of PricewaterhouseCoopers and its associate
partnerships is 1 Embankment Place, London WC2N 6NN where lists of the
partners' names are available for inspection. All partners in the associate
partnerships are authorised to conduct business as agents of, and all
contracts for services to clients are with, PricewaterhouseCoopers. The UK
firm of PricewaterhouseCoopers is authorised by the Institute of Chartered
Accountants in England and Wales to carry on investment business.
PricewaterhouseCoopers is a member of the world-wide
PricewaterhouseCoopers organisation.
The information transmitted is intended only for the person or entity to which
it is addressed and may contain confidential and/or privileged material.  Any
review, retransmission, dissemination or other use of, or taking of any action
in reliance upon, this information by persons or entities other than the
intended recipient is prohibited.   If you received this in error, please
contact the sender and delete the material from any computer.

More information about the thelist mailing list