I have a webpage where I sometimes need to communicate with the device. This device is accessed using sockets, so I have a jar file with support libraries.
When you want to receive data from the device, you press the button, and the javascript method retrieves the data using the library (there is no java code)
The presence of jar causes the java machine to start as soon as you load the page.
Since there are many users who do not use this option (as a rule, they donβt even have a device, for starters), they see this as a nuisance.
Is there any way to delay loading java until a button is clicked?
I do not want to redirect them to another page, this should be done on the same page.
source share