jQuery vs. PHP - Performance Comparison

后端 未结 8 810
猫巷女王i
猫巷女王i 2021-01-15 06:37

Performance-wise, which would be the better solution? Here\'s a really small example. The PHP script returns a number to jQuery, which needs to be checked if it\'s 1

8条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-15 07:03

    Doesn't matter, really - the performance bottlenecks are likely to be elsewhere.

    I would prefer doing this on the server, as supporting non-JS browsers is important again (what with underpowered mobile devices, web spiders and whatnot).

提交回复
热议问题