diff --git a/lib/resque/tasks.rb b/lib/resque/tasks.rb
index <HASH>..<HASH> 100644
--- a/lib/resque/tasks.rb
+++ b/lib/resque/tasks.rb
@@ -40,7 +40,7 @@ namespace :resque do
   # Preload app files if this is Rails
   task :preload => :setup do
     if defined?(Rails)
-      if Rails::VERSION::MAJOR > 3
+      if Rails::VERSION::MAJOR > 3 && Rails.application.config.eager_load
         ActiveSupport.run_load_hooks(:before_eager_load, Rails.application)
         Rails.application.config.eager_load_namespaces.each(&:eager_load!)
Only run eager_load! if config.eager_load is true