When i click on the button for the first time once the page loads it's not smooth, it instantly makes changes.
However all subsequent clicks result in the correct behaviour, for both "first click" and "second click" interactions.
I have tried playing around with it to no avail.
Public link attached. Navigate to the update page and click on "How to use ToSWill" or any of the other headings.