Skip to content

Commit

Permalink
Load controls css preemptively.
Browse files Browse the repository at this point in the history
It seems that the css will not load dynamically like the controls javascript.
  • Loading branch information
jasongrout committed Nov 7, 2017
1 parent 0c5f96c commit c906cf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/jupyterlab-manager/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import {
} from '@jupyter-widgets/controls/lib/version';

import '@jupyter-widgets/base/css/index.css';

import '@jupyter-widgets/controls/css/widgets-base.css';

const WIDGET_MIMETYPE = 'application/vnd.jupyter.widget-view+json';

Expand Down Expand Up @@ -114,7 +114,7 @@ function activateWidgetExtension(app: JupyterLab): base.IJupyterWidgetRegistry {
version: JUPYTER_CONTROLS_VERSION,
exports: () => {
return new Promise((resolve, reject) => {
(require as any).ensure(['@jupyter-widgets/controls', '@jupyter-widgets/controls/css/widgets-base.css'], (require: NodeRequire) => {
(require as any).ensure(['@jupyter-widgets/controls'], (require: NodeRequire) => {
resolve(require('@jupyter-widgets/controls'));
},
(err: any) => {
Expand Down

0 comments on commit c906cf9

Please # to comment.