Skip to content Skip to sidebar Skip to footer

How Can I Conditionally Send Templates And Javascript Files To The Client In Meteor?

This is related to a previous question I asked about conditionally sending document data to the client in meteor. Lets say I have a parse-like data editor/browser available for us

Solution 1:

If you don't want Meteor to load your client-side scripts automatically, you could place them in the /public directory and load them yourself when you need them.

However, in the case of an admin environment, it may actually be better from a software development perspective to separate all of that into its own app, pointing to the same database like you said.


Solution 2:

At the moment (June 2015), incremental template loading is still on the Meteor Roadmap.

The best solution might actually be to split away the admin app, also for security reasons.

If you do want to keep everything in one app, the leading community package for lazy loading is numtel:lazy-bundles.


Post a Comment for "How Can I Conditionally Send Templates And Javascript Files To The Client In Meteor?"