Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude some packages (js files) from other routes than admin panel #428

Open
piotrekfracek opened this issue Aug 17, 2016 · 3 comments
Open

Comments

@piotrekfracek
Copy link

piotrekfracek commented Aug 17, 2016

Hi,

I'm using orion in my project. I have to admit it works very well. However, it loads many packages (javascript files) globally (to the main bundle) that I use only in admin panel. Is there any way to exclude them from other routes? Since admin panel is using only by admin I see no reasons to send those files to end user.

Example files:

aldeed_simple-schema.js
aldeed_autoform.js
summernote_standalone.js
aldeed_simple-schema.js
aldeed_tabular.js
orionjs_bootstrap.js

That may be not related with orion directly, but maybe you know any solution.

Perfect situation will be when I'd be able to choose which packages should be loaded to which route, but it's fine if there is any different workaround.

Network chrome console

@kamil-borkowski
Copy link

+1

@krishaamer
Copy link

Yup.

@piotrekfracek
Copy link
Author

@krishaamer Can you elaborate?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants