Hi,I am using an existing application where they have created various components and for each component they have individual CSS which is kept under /iwadmin, but before creating the pages we have to run a script which merge all the css into one common.css and this common.css we include in every page instead of including individual css of components which are inculed in that page so that user has no confusion which css is related to which component.But don't you think that if we have only four components in our page, wouldn't it impact on performance of loading the page where it will try to load the compete css.My question is, Is this the correct approach or what can be the better design to implement the same.Thanks in advance
Combined files are a way to reduce the number of HTTP requests by combining all scripts into a single script, and similarly combining all CSS into a single stylesheet. Combining files is more challenging when the scripts and stylesheets vary from page to page, but making this part of your release process improves response times.
My style sheet and scripts are varying from page to page. But for every page loading the whole style sheet is the good practice?? because I think it will directly impact on the performance of page while loading whole CSS for evry page.