Author Topic: Combine css files  (Read 30 times)

happy

  • Prime Member
  • ****
  • Posts: 113
  • Karma: +0/-1
Combine css files
« on: November 03, 2017, 04:25:52 AM »
Hi
Is it possible to combine or merge all css files in one file?
Please guide

Thanks

maverick

  • Administrator
  • Veteran Member
  • *****
  • Posts: 3005
  • Karma: +210/-7
    • Maverick Webworks
Re: Combine css files
« Reply #1 on: November 03, 2017, 05:21:09 AM »
It might be possible, however it would be a real bad idea for the following reasons.

1. It would require a fair bit of work as you'd need to go through all of the PHP files and direct it to the new CSS file.

2. The file would be massive making for slower loading pages.

3. Utilizing one massive CSS file would also make it far more difficult to make edits as you'd need to try and locate which CSS code is associated with an element within a certain page, and would likely require custom modifications to prevent any conflicts between pages, which would mean a lot of testing and edits until you're sure that all pages and elements are displaying properly.

Keeping the CSS files separate and associated with a particular page just makes more sense as it only loads a few CSS files with a minimal amount of code required for each page, which just makes things much easier to manage and work with.

Fusion Responsive Template & Free Mods
http://www.maverickwebworks.com
DO NOT PM me asking for personal help. Post your problem or request in the forums so the entire community can contribute and benefit.

happy

  • Prime Member
  • ****
  • Posts: 113
  • Karma: +0/-1
Re: Combine css files
« Reply #2 on: November 03, 2017, 06:32:53 AM »
Thank you