Javascript was abysmally slow as well, but then it got some insane amount of man-hours spent on it. Also, with that internet speed, everything was slow - I don’t see why would that be a valid criticism against java, especially that Java byte code is insanely compact, much more so than minified js.
I think it was just ahead of its time, and Java itself could have easily been used as the web-native language if it is made to interact with the DOM natively.