         (utils/log :debug "Figwheel: NOT loading these files ")
         (let [{:keys [figwheel-no-load not-required]}
               (group-by
-                     (fn [{:keys [meta-data]}]
-                       (cond
-                         (nil? meta-data) :not-required
-                         (contains? meta-data :figwheel-no-load) :figwheel-no-load
-                         :else :not-required))
-                     files-not-loaded)]
+               (fn [{:keys [namespace]}]
+                 (let [meta-data (get @figwheel-meta-pragmas (name namespace))]
+                   (cond
+                     (nil? meta-data) :not-required
+                     (meta-data :figwheel-no-load) :figwheel-no-load
+                     :else :not-required)))
+               files-not-loaded)]
           (when (not-empty figwheel-no-load)
             (utils/log (str "figwheel-no-load meta-data: "
-                            (pr-str (map :file figwheel-no-load)))))
+                            (pr-str (map (comp name->path :namespace) figwheel-no-load)))))
           (when (not-empty not-required)
             (utils/log (str "not required: " (pr-str (map :file not-required))))))))))
 

    (set! (.-isProvided__ js/goog) (.-isProvided_ js/goog))
    (set! (.-isProvided_ js/goog) (fn [name] false))
    ;; provide cljs.user
    (goog/constructNamespace_ "cljs.user")
    ;; we must reuse Closure library dev time dependency management, under namespace
    ;; reload scenarios we simply delete entries from the correct
    ;; private locations
    (set! (.-CLOSURE_IMPORT_SCRIPT goog/global) queued-file-reload)
    ;; TODO reload-all doesn't work 
    (set! (.-require js/goog)
          (fn [src reload]
            (when (= reload "reload-all")
              (doseq [ns (get-all-dependencies src)] (unprovide! ns))
              (set! (.-cljsReloadAll_ js/goog) true))
            (let [reload? (or reload (.-cljsReloadAll__ js/goog))]
              (when reload? (unprovide! src))
              (let [ret (.require__ js/goog src)]
                (when (= reload "reload-all")
                  (set! (.-cljsReloadAll_ js/goog) false))
                ret))))))

#_(js/goog.require "figwheel.client.file_reloading" true)

(defn patch-goog-base []
  (defonce bootstrapped-cljs (do (bootstrap-goog-base) true)))

;; this matches goog behavior in url resolution should actually just
;; use that code
(defn resolve-ns [ns] (str goog/basePath (name->path ns)))

(defn addDependency [path provides requires]
  (doseq [prov provides]
    (path-to-name! path prov)
    (doseq [req requires]
      (name-to-parent! req prov))))

(defn bootstrap-goog-base
  "Reusable browser REPL bootstrapping. Patches the essential functions
