`loaded = true` is still set lower down here (which is why I changed this)