One big CSS or one CSS for each page?


#1

Hi,

I have some CSS for my pages. Is it better (regarding the performance) to have one CSS for all pages or one CSS pef each page?

Regards,

Mike


#2

Hi, it’s better to have one css when developing SPAs.
I would recommend you investigate and use sass (in particular compass) to organize your stylesheets and reutilize styles among them.
There are various ways to automate the compilation of a unique css file from multiple sass files.
I am currently using a custom grunt + compass task to compile my stylesheets, but there is a cool yeoman ionic generator that handles that for you.