                  :content args})
   args)
 
-(defonce autoload (atom true))
-
-(defn ^:export toggle_autoload []
-  (swap! autoload not))
+(defn autoload? []
+  (condp = (or (.getItem js/localStorage "figwheel_autoload") "true")
+    "true" true
+    "false" false))
+
+(defn ^:export toggle-autoload []
+  (.setItem js/localStorage "figwheel_autoload" (not (autoload?)))
+  (utils/log :info
+             (str "Figwheel autoloading " (if (autoload?) "ON" "OFF"))))
 
 (defn console-print [args]
   (.apply (.-log js/console) js/console (into-array args))

    (go
     (cond
      (reload-file-state? msg-names opts)
      (if (and @autoload (:autoload opts))
        (<! (heads-up/flash-loaded))
        (<! (heads-up/clear)))
     

            console-print
            figwheel-repl-print))))


(defn get-essential-messages [ed]
  (when ed
    (cons (select-keys ed [:message :class])
