mirror of https://github.com/apache/superset.git
refactor: rearrange dashboard page js bundles (#16285)
This commit is contained in:
parent
ac8e54d909
commit
b87e0b32ac
|
@ -30,7 +30,9 @@ import {
|
|||
import { hydrateDashboard } from 'src/dashboard/actions/hydrate';
|
||||
import { setDatasources } from 'src/dashboard/actions/datasources';
|
||||
import injectCustomCss from 'src/dashboard/util/injectCustomCss';
|
||||
import setupPlugins from 'src/setup/setupPlugins';
|
||||
|
||||
setupPlugins();
|
||||
const DashboardContainer = React.lazy(
|
||||
() =>
|
||||
import(
|
||||
|
|
|
@ -32,13 +32,11 @@ import Menu from 'src/components/Menu/Menu';
|
|||
import FlashProvider from 'src/components/FlashProvider';
|
||||
import { theme } from 'src/preamble';
|
||||
import ToastPresenter from 'src/messageToasts/containers/ToastPresenter';
|
||||
import setupPlugins from 'src/setup/setupPlugins';
|
||||
import setupApp from 'src/setup/setupApp';
|
||||
import { routes, isFrontendRoute } from 'src/views/routes';
|
||||
import { store } from './store';
|
||||
|
||||
setupApp();
|
||||
setupPlugins();
|
||||
|
||||
const container = document.getElementById('app');
|
||||
const bootstrap = JSON.parse(container?.getAttribute('data-bootstrap') ?? '{}');
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
with development version #}
|
||||
<!-- Bundle js {{ filename }} START -->
|
||||
{% for entry in js_manifest(filename) %}
|
||||
<script src="{{ entry }}"></script>
|
||||
<script src="{{ entry }}" async></script>
|
||||
{% endfor %}
|
||||
<!-- Bundle js {{ filename }} END -->
|
||||
{% endmacro %}
|
||||
|
|
Loading…
Reference in New Issue