Trim first, dry second.
With a wet trim, you remove the fan and sugar leaves right after harvest, while the buds are still moist, then hang or rack the trimmed buds to dry. The leaves cut away cleanly when they are turgid, so trimming is quicker and the result looks tidy immediately. Because you are drying less plant material, the buds dry a little faster and the drying space stays cleaner with fewer leaves to shed moisture.
The trade-off is speed of drying: with the protective leaves gone, buds can dry too fast in a dry climate, which is the enemy of a smooth cure. Wet trimming suits tight spaces and growers short on time. It is not a fix for a humid room: in Punja and colleagues' 2023 study of a licensed facility's drying rooms, wet-trimmed buds dried on racks carried significantly more yeast and mold than whole stems hung to dry in all four comparisons. The authors blamed trimming injury, and it was not a controlled trial. If your drying space runs humid, fix the room before you hang or rack (see what humidity for drying weed).