More than half of the total energy from the sun arrives as infrared. It zooms through space but carries no heat until it hits a solid object here on earth. Clear glass windows minimally slow these waves, so when they stop at the floor, furniture or your skin, they heat up those objects.  The sooner you block this incoming energy (right next to the glass), less heat is created inside a building.