Airline and airport policy dictate.
If there is no preconditioned air available then the cabin will get uncomfortably warm pretty quickly once boarding starts. Some look after the pax some don't give a Damn as long as it saves fuel and wear and tear on the APU.