I eat a hour before doing either nothing fasted. Here is how I think about it for cardio if you dont have some fuel you won’t be giving it your best. Thoughts of food and being weak doesn’t help burn calories. If you ate you can give it 100% you are going to burn it off anyway. Try something small like a banana and oatmeal packet. Good calories and will give you fuel for the workout. On lifting days I always have 2 meals before gym or the workout is shit.