orionjs / orioncms

[Old] Orion is an open source framework built on Meteor that makes complex as well as simple apps possible with minimal effort.
http://orionjs.org
MIT License
715 stars 129 forks source link

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

Open piotrekfracek opened 8 years ago

piotrekfracek commented 8 years ago

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 commented 8 years ago

+1

krishaamer commented 8 years ago

Yup.

piotrekfracek commented 8 years ago

@krishaamer Can you elaborate?