The residue inside the beer glass is referred to as lacing. The slower a beer with foam is consumed, the more lacing you will spot.