App structure and CSS loading questions


I’ve just realized that all my CSS rules are loaded when a user requests the home page, even rules from other pages.

I’m using Blaze and Iron Router. All my routes are defined in a route.js file which imports all the pages, say home.js, dasboard.js… In turn, this file imports the associated CSS file.

Using this structure, all the css rules are imported and loaded. Is there an other way to proceed to avoid non related loading un related CSS rules ?

1 Like

Have the same question, so i connect it together

1 Like

Thanks! mandatory 20 chars