What is trail braking?
Trail braking means keeping some front brake on as you lean the motorcycle into the corner, and letting it go gradually as the lean builds. Done well, it is one of the biggest differences between a quick lap and a slow one.
What it is
Most riders learn to brake upright, release the brake, and then turn. Trail braking overlaps the two. You do the hardest braking upright, and as you start to lean you keep a little of the brake on, easing off as the lean angle grows, until the brake is fully released around the slowest point of the corner.
The front tyre only has so much grip. Upright, nearly all of it can go to slowing down. Leaned over, more of it is needed to turn. Trail braking trades one for the other smoothly: less brake, more lean, never more of both than the tyre can carry.
Why it is faster
Keeping the front loaded as you turn in keeps the fork compressed and the front tyre pressed into the track. The motorcycle turns more willingly and holds a tighter line, and you can carry the braking deeper into the corner instead of finishing it early and coasting.
Coasting is the cost of releasing too soon: the fork extends, the front loses load right when you ask it to turn, and the bike wants to run wide. Many riders lose more time in that gap than anywhere else in the corner.
Where it goes wrong
Letting go of the brake all at once as you tip in, so the motorcycle stands up and drifts wide. Holding too much brake too deep, so the front has nothing left for the lean. Releasing in steps instead of one smooth fade. The aim is a release that mirrors the lean: as one goes up, the other comes down.