Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello,

Is there any performance difference in "Client side javascript vs Embedded script in server control"

Somebody tell me that client side javascript is faster.

please comment.
Posted
Updated 3-Feb-12 20:32pm

Yes there r difference in performance but both r suitable for different situation. we can not neglect any one because they combined give us good set of facility.

Read This

http://www.scribd.com/doc/3095639/ClientSide-vs-ServerSide-Scripting-5[^]

http://www.eggheadcafe.com/PrintSearchContent.asp?LINKID=569[^]
 
Share this answer
 
The question makes no sense practically.

If you compare performance if the same script (but how can it be the same?) on client and server side, their performance characteristics (say, measured in pure CPU ticks) do not say much about the total throughput of the whole system with all the clients and will depend on current situation and various factors, first of all, on the activity of the client.

In particular, one important factor is that the server host is normally much more busy serving clients than any of the clients machine. That said, removing part of the workload from server part and adding some workload to the client is much more effective than optimizing of the client part scripting, even if the client processing is much less efficient.

In many cases, the choice to do certain processing on the server is defined not by performance, but some important factors of functionality such as safety or high availability.

—SA
 
Share this answer
 
v2
Hi,
I think that you are comparing two things that are equal, because embeded javasripts in server controls are eventully executed on client when server process control and result with renderd html/javascript is sent as response to the client (browser).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900