In a medium bowl, combine sugar, cocoa if using, and milk until smooth.
Add corn syrup and vanilla. Continue beating together until smooth and glossy. Add additional milk in tablespoon increments until desired consistency. (Icing consistency should be thin enough to spread easily but thick enough not to drip excessively off the cookies.)