Not necessarily. I have seen applications having less
Java code and more JavaScript code (lots of JQuery, Ajax, Kinetic JS etc) and the performance is quite good.
Angular JS applications are applications having only JavaScript code and they perform very well.