Skip to content

Commit

Permalink
Merge pull request #1802 from jasongrout/labcss
Browse files Browse the repository at this point in the history
Load controls css preemptively.
  • Loading branch information
jasongrout authored Nov 7, 2017
2 parents 0c5f96c + c906cf9 commit 45a6280
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 45a6280

Please # to comment.