When creating a webpage, I always make sure to store all of my CSS selectors in their own file. This includes selectors for the homepage, inner pages, and any other pages on my website.
However, when running tests on sites like GTMetrics.com or webpagetest.org, I often receive feedback that I have many unused selectors in my CSS file, prompting me to optimize it. The thing is, these selectors are actually used on different pages within my site.
So now I'm left wondering, what is the best approach for storing CSS selectors? Should I use a separate CSS file for each page and link them individually, or should I use one main CSS file with @import rules, or perhaps continue storing all selectors in just one file as I do currently?