Pete Winter
asked on
Combining CSS & JS into one file and minifying - Management
I am going through the process of trying to optimise various websites to improve speed. I am testing on sites like GT Metrix, etc.
The main issue I have is regarding combining CSS & JS into one file and minifying. I understand what I need to do, but it creates a nightmare for me as far as ongoing future development and updates in concerned. i.e. My development site has them in separate files for ease of understand and updating, then it makes it quite time consuming each time as I need to re-combine each time a small update has been done to one of these files. Some of my sites have 15+ separate CSS or JS files.
I would be interested to see how everyone else deals with this process. Is there an easy automated way to get several css & js files into one file?
The sites are generally bespoke sites so not looking for Wordpress plugins.
The main issue I have is regarding combining CSS & JS into one file and minifying. I understand what I need to do, but it creates a nightmare for me as far as ongoing future development and updates in concerned. i.e. My development site has them in separate files for ease of understand and updating, then it makes it quite time consuming each time as I need to re-combine each time a small update has been done to one of these files. Some of my sites have 15+ separate CSS or JS files.
I would be interested to see how everyone else deals with this process. Is there an easy automated way to get several css & js files into one file?
The sites are generally bespoke sites so not looking for Wordpress plugins.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yes I did mean one file for CSS & JS.
I have purchased Codekit. Looks good so will give that a try.
David - Thanks for the all the additional comment. I will investigate further as mentioned.