Which processing is fast Client-side or Server-side? for client side processing browser need to download every JavaScript first and in server side programming everything happens on server without downloading anything to user PC?

哪个处理是快速客户端处理还是服务器端处理?对于客户端处理浏览器需要先下载所有的JavaScript,在服务器端编程,所有的事情都发生在服务器上,而不需要下载任何东西给用户PC?

if for a particular functionality we have solution in both javascript and php/asp then what should be chosen and why?

如果对于特定的功能,我们在javascript和php/asp中都有解决方案,那么应该选择什么,为什么?

3 个解决方案

#1


2

Downloading the JavaScript upfront is usually quicker as a server round trip isn't required (and it is networking operations that are usually the most time consuming).

在不需要服务器往返的情况下,提前下载JavaScript通常会更快(而且通常是最耗时的网络操作)。

That said, there should always be a server side solution for any essential functionality (as JS support is not guaranteed), and performance shouldn't be the first thing you think about (trust should be, e.g. you can't trust client side code to make certain that data isn't going to trash your database).

说,应该总是有一个服务器端解决方案的基本功能(如JS支持是不能保证),和性能不应该是你考虑的第一件事(信任应该是,如你不能信任客户端代码来确保数据不会垃圾数据库)。

更多相关文章

  1. 将大型阵列传输到客户端
  2. 简单数据的最佳服务器端数据存储方法
  3. 【JavaScript】离线应用与客户端存储
  4. 如何用NodeJS组织构建、服务器、客户端和共享JavaScript代码
  5. 我如何捕获并插入Meteor.Error警报从Meteor.Methods到客户端数据
  6. 如何将变量推送到web客户端以获取ajax?
  7. 如何使用客户端Javascript数组并通过节点发布。将js API插入Mong
  8. Javascript日期/时间函数是否依赖于客户端机器?
  9. 应用Python开发WebService服务端及客户端

随机推荐

  1. JavaScript String(字符串对象)
  2. 在变量名是字符串时声明变量?
  3. IE:令人难以置信的跳跃表标题
  4. 如何在three.js中导入json和渲染
  5. iOS、Android、WebOS系统体系架构的比较
  6. 关于JavaScript方法,设置GridView中首项Ch
  7. 前端省市区(县)三级联动下拉框
  8. 在Internet Explorer中使用sprited按钮和
  9. touchableopacity onpress函数undefined(
  10. 将textarea值附加到现有数组javascript