I appeal to professionals in web development. I am writing a small application in php. A lot of work with the database, a lot of loadable information, and already several dozen jQuery functions on onclick. I ask more to calm - is this normal? it just turns out that the site is more on JS than on php :) When you look at other people's java scripts, there seems to be clever, a lot of all sorts of functions, and I have 90% handling of clicks. Can advise what.

By itself, an application programmer. A little does not fit in the head processing JS. It always seemed to be too heavy on the processor (although I don’t observe it in debugging).

  • four
    Now this trend. A lot of application work is transferred to the client. The server simply gives the data to the client application. - ilyaplot
  • one
    It depends on the site. If the server logic is not so much, of course, the client can outweigh. In my opinion, JS needed to handle events on the client, clicks are non-clicks and other things. JS can occupy a significant part of the project, if it takes into account many nuances of client logic. The only thing I can notice is if all these several dozen functions are implemented on one page. - SLy_huh

0