All of these suggestions are good. I've tried 'em all. In the end, there are 3 things that I do. I use the Elixers, which help a lot, I spend a few minutes with technique just prior to recording, and If I still get fret noise that isn't suitable for the tune, I just zoom in on the wav and mute it.
I always do a warm up prior to recording with something to make me concentrate and get the blood flowing, playing a few difficult things that aren't related to the tune I'm gonna record. I like "Penny for your thoughts" by Frampton, or "Dust in the Wind" or something. My guitar playing has improved quite a bit since I began recording, but in the end I just do the best that I can and move on.