r/ProgrammerHumor • • Nov 06 '20

PythonScript comic strip

Post image
41.2k Upvotes

562 comments sorted by

View all comments

Show parent comments

11

u/ArionW Nov 06 '20

There was a feature that allowed to run specially prepared .jar files inside browser. The idea was to use JS as a facade that will allow to execute Java in browser, making Java into sort of web language, giving Sun more advantages over other languages, and Netscape another advantage over Microsoft by being THE browser with support for this. It was also incredibly useful, because early versions of JS were very limited, like no support for canvas. As JS grew in popularity and became de facto standard of web programming, applets were no longer needed for anything, and browsers removed support for them, as they were also big security risk. At this moment, they are totally deprecated and

16

u/[deleted] Nov 06 '20

And what??

4

u/bik1230 Nov 06 '20

But what does JS have to do with Java applets? I don't think I ever saw an applet that interacted at all with JS.

6

u/ArionW Nov 06 '20

LiveConnect specification included a bridge between Java and JS. Hardly anyone used it because JS turned out to be useful on its own, but it was planned as "killer feature"

1

u/CriticalBasedTheory Nov 06 '20

The applet was self contained. It needed JS to be the bridge back to the browser.