Dynamically load CodeMirror themes

Most users run with the default theme, which does not require any
additional CSS. The total set of themes costs 7.3 KiB of download
when added into the default CSS file.

Split the themes into their own files and only load the theme when
it is required by the browser.

Change-Id: I48f274347e1ca94895c0756fa17479661c78fd57
This commit is contained in:
Shawn Pearce
2014-12-31 12:51:45 -05:00
parent 3a52cede92
commit a2346d1f0a
9 changed files with 184 additions and 53 deletions

View File

@@ -20,4 +20,5 @@
<source path='lib'/>
<source path='keymap'/>
<source path='mode'/>
<source path='theme'/>
</module>