Reputation: 2028
I'm trying to build a Meteor App which, for some clients, is very sensitive to HTML and JS payload.
Is there any way or recommended practice in Meteor to build separate clients, so that only certain HTML, JS and CSS will be bundled for each client (and maybe some of it common to all of them, shipped to all of them)?
Other than building separate Meteor apps with a shared database, that is.
Upvotes: 1
Views: 604
Reputation: 64342
As of this writing, incremental loading is not a feature in meteor but it is under consideration for a post-1.0 release.
A number of us who host production apps are grumbling about this. One proposed solution (which I have not yet tried) is to use the upcoming ROOT_URL_PATH_PREFIX in combination with a reverse proxy to divide apps by path. Even if that works, its a complex hack and still requires breaking your codebase into separate apps.
Sorry, I wish I had better news. At the minimum, you could get vocal on trello about your need for this feature.
Upvotes: 2