Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce, now unnecessary, asynchronicity in the
BasePreferences
cons…
…tructor Originally the default preferences were defined in a JSON-file checked into the repository, which was loaded using SystemJS in development mode. Over the years a number of changes have been made to this code, most notably: - The preferences JSON-file is now generated automatically, during building, from the `AppOptions` abstraction. - All SystemJS usage has been removed from the development viewer. Hence the default preferences are now available *synchronously* even in development viewer, and it's thus no longer necessary to defer to the microtask queue (since `getDefaultPreferences` is async) just to get the default preferences. While the effect of these changes is quite small, it *does* reduces the time it takes for the preferences to be fully initialized. Given the amount of asynchronous code during viewer initialization, every bit of time that we can save should thus help.
- Loading branch information