I don’t recommend this but I try to time it that I get to the airport in time to walk through security and get to my gate by the time boarding begins.
For those who don’t travel often, I’d say get there (as in walking through security) 20-30 minutes prior to boarding starting.