Is it better to use 1 CSS file for the entire site or multiple CSS files for best practice?

Asked

Viewed 34 times

-1

I am developing an Ecommerce selling credits for games and in this Ecommerce has several pages and some being very different from others.. My question is whether it is better to use a Global CSS for the whole site or 1 css file for each page? On issues of good practice which is best?

Example: index.css, login.css, products.css

  • Please edit the question to limit it to a specific problem with sufficient detail to identify an appropriate answer.

  • Just create a . css for each page according to your interest.

  • I think this might interest you, maybe not so much for the answer, but to you research the subject of the question https://answall.com/questions/291116/um-css-paraabove-the-fold-e-outro-css-para-below-the-fold-vale-a-pena

1 answer

-1

It depends a lot on how you are building your project. The Framework you are using. This answer is hard to answer.

You can have a global css and others for each page, it all depends on how you want to do, and as I said, from the Framework, each has a recommendation.

  • Hmm, let’s assume that I’m using Pure Javascript to develop... no Frameworks at anything but pure, which would be the best approach?

  • Please provide additional details in your reply. As it is currently written, it is difficult to understand your solution.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.