about summary refs log tree commit diff
path: root/app/javascript/themes/default
diff options
context:
space:
mode:
authorDavid Yip <yipdw@member.fsf.org>2017-11-17 14:01:23 -0600
committerGitHub <noreply@github.com>2017-11-17 14:01:23 -0600
commit45f18b8f494153fd63871d60782da992e847ec16 (patch)
tree82b4be5028ec4c8e066c69bdf068ac786104508f /app/javascript/themes/default
parent2a386ad88dad4a076f19dbd1b085ea561868deec (diff)
parent585758a373df05127b0d544ac5971ef67f053e83 (diff)
Merge pull request #218 from glitch-soc/themed-prefetching
Themed preloading
Diffstat (limited to 'app/javascript/themes/default')
-rw-r--r--app/javascript/themes/default/theme.yml17
1 files changed, 13 insertions, 4 deletions
diff --git a/app/javascript/themes/default/theme.yml b/app/javascript/themes/default/theme.yml
index 6a7a872b4..0b262cc82 100644
--- a/app/javascript/themes/default/theme.yml
+++ b/app/javascript/themes/default/theme.yml
@@ -1,9 +1,18 @@
-#  (REQUIRED) Name must be unique across all installed themes.
-name: default
-
 #  (REQUIRED) The location of the pack file inside `pack_directory`.
 pack: application.js
 
 #  (OPTIONAL) The directory which contains the pack file.
-#  Defaults to the theme directory (`app/javascript/themes/[theme]`).
+#  Defaults to the theme directory (`app/javascript/themes/[theme]`),
+#  but in the case of the vanilla Mastodon theme the pack file is
+#  somewhere else.
 pack_directory: app/javascript/packs
+
+#  (OPTIONAL) Additional javascript resources to preload, for use with
+#  lazy-loaded components. It is **STRONGLY RECOMMENDED** that you
+#  derive these pathnames from `themes/[your-theme]` to ensure that
+#  they stay unique. (Of course, vanilla doesn't do this ^^;;)
+preload:
+- features/getting_started
+- features/compose
+- features/home_timeline
+- features/notifications