"Do not click submit twice" isn't a side-effect of hiding loading; it's a side-effect of sites taking something that should be idempotent (a single purchasing transaction) and failing to code it to be idempotent. Nothing about the page loading UI would have prevented that issue.