Tricks for keeping glass from fogging up racing on cold nights?

Have heard using shaving cream on windshield will keep it from fogging up. Any experience with that, or other suggestions?
I have had issues seeing out of the car on cold nights racing, might be dealing with it this coming weekend
Bought this from a booth at mopar nationals in Carlisle PA. Guy had a boiling pot of water by a motorcycle helmet visor. No fog. It’s the truth

1CAC72A1-1969-4429-A704-EEC944397F22.jpeg