Both buttons here rely on the same class to display (or not display) the loading spinner while the content “loads”. The only difference is how long the class is applied to the container element. The spinner only appears if the delay threshold is met.