Eating before a workout - Optimal Time

I will eat 2-3 hours before I head out the door as I like my food to digest before working out. I can head out before that on a full stomach but then I’ll be eating on the bike anyway which means my gut is going to be working even harder to digest all the food.