ractivejs / rvc

RequireJS loader plugin for Ractive components
20 stars 10 forks source link

[QUESTION] Is components guaranteed to load after DOMContentLoaded? #8

Open dotnetCarpenter opened 9 years ago

dotnetCarpenter commented 9 years ago

I was about to implement DOMContentLoaded in my require.callback function. When it dawned on me that rvc is used with an exclamation mark (e.i. deps: ["ractive", "rvc!components/filter"]). Does that mean that rvc is loaded after the DOM is ready as described in RequireJS#pageload documentation? Or does rvc do any DOM ready logic before inserting/appending a component?

I just want to make sure I don't need to track down race conditions later.