Where does the energy radiated by a protostar come from before sustained nuclear fusion begins?

Answer

Gravitational contraction.

During the protostar phase, the object heats up and emits energy solely because the inward force of gravity is compressing the accumulated material, not due to nuclear reactions.

Where does the energy radiated by a protostar come from before sustained nuclear fusion begins?

#Videos

How Do Stars Form? - YouTube

starscosmologynebulastar formationastrophysics