don't require feature when it cannot possible not be loaded yet

 (eval-after-load 'dired-x ; <--.
   '(...                   ;    |
-    (require 'dired-x)    ; <--'
     ...))

What more can I say? ;-)