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>
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).