This PR introduces a throttling of 3 seconds for radio buttons, sliders and checkboxes. When a user clicks an element, JAMES will immediatetly send a request to the OCPU server, and then pause for 3 seconds before sending a next request. This reduces the strain on the server by users that are just "randomly clicking".
This PR also moves event attachment code from index.html to start.js to separate static UI definitions from its dynamic behaviour.
This PR introduces a throttling of 3 seconds for radio buttons, sliders and checkboxes. When a user clicks an element, JAMES will immediatetly send a request to the OCPU server, and then pause for 3 seconds before sending a next request. This reduces the strain on the server by users that are just "randomly clicking".
This PR also moves event attachment code from
index.html
tostart.js
to separate static UI definitions from its dynamic behaviour.