From 461a271526fc7edaf73cc4169f3de2bf0e956327 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Sun, 22 Sep 2013 15:31:59 -0700 Subject: [PATCH] Prime require cache with atom exports --- src/atom.coffee | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/atom.coffee b/src/atom.coffee index 4e4f33add..3c5a17507 100644 --- a/src/atom.coffee +++ b/src/atom.coffee @@ -60,6 +60,10 @@ window.atom = _.values(@activePackages) loadPackages: -> + # Ensure atom exports is already in the require cache so the load time + # of the first package isn't impacted by being the first to require atom + require '../exports/atom' + @loadPackage(name) for name in @getAvailablePackageNames() when not @isPackageDisabled(name) @watchThemes()