Move already_loading logic into commits.js