Looks like child b isn't being loaded. [Screen Shot 2016-06-02 at 23](//muut.com/u/riot-js/s3/:riot-js:xpT4:screenshot20160602at23.19.33.png.jpg)
Were you able to solve the problem? I'm also looking at keeping nested tags in separate files.
Why not just declare on index.html ?
I somewhat managed to accomplish what you deserved: Using fetch() & FileReader though is not the best solution... But at least works with your example. https://plnkr.co/edit/doNiLG1mPaN92cm4pWv4?p=preview
Sorry, this is the correct Plunker: https://plnkr.co/edit/CoQg2u4aqYPGb5O1XKM1?p=preview I realized that javascript scripts inside child_b won't work with this solution. However, If you only need static content, this may be enough :)
What I do when developing apps with Riot.js is to compile all tags into one single components.js file (with Riot CLI) and then mount the parent tag.
@jonaspm have you tried multiple compiled files and lazy-load them as needed (eg. via a new route)?
Hmm no, but recently I was reading a blog post about something similar using SSR https://medium.com/@prateekbh/isomorphic-app-with-riotjs-in-simple-steps-de8a50611dbc I may try to do lazy loading and report results back.
I think I made it work. See https://github.com/jhfoo/tag-lib-loader
Interesting! Give it a try and tell us how it went!