Forum Moderators: open
Following .css files
advpoll.css
comment.css
content.css
date.css
defaults.css
fieldgroup.css
image_attach.css
nice_menus.css
nice_menus_default.css
node.css
poll.css
print.css
search.css
simplenews.css
style.css
system.css
timeentry.css
user.css
white.calendar.css
Following .js files
advpoll-vote.js
content.js
date_timezone.js
drupal.js
homepage.js
jquery.form.js
jquery.js
nice_menus.js
There are a range of things you can do.
Simplest: enable caching. That will aggregate all those files into a single file and will gzip it if the client supports it and you're not already gzipping at the server level. That doesn't take care of redundancy and bloat, though.
Most complex: You basically remove the calls in the theme to include CSS and JS, you weed out all the rules/functions you don't actually need and you include just what you want. That's a lot of work and I wouldn't do it for the JS because you would miss out on updates, possibly related to security and stability, on those modules.
Simplest: enable caching. That will aggregate all those files into a single file and will gzip it if the client supports it and you're not already gzipping at the server level. That doesn't take care of redundancy and bloat, though.
It's right below enable caching...
On the site performance page under
"Aggregate and compress CSS files:" click enabled. This creates 1 CSS file with a big long random character name and it contains all the css code so you won't have 19 http requests to your site.
Just remember that any CSS changes will need a new aggregated file created.
On modifying .js files this might lead to some security/stability issues, so we should not touch this at all. (can we minimize total number of .js files anyhow ?)
Modifying .css files, will this have an negative effects on performance ?
Our developer is being wrong, or I am posting queries wrong.
You can still aggregate the JS files like BradleyT said for the CSS files. Same thing. and like he said RE CSS, if you make changes, you need to remember to regenerate the aggregated file.
Modifying CSS files have negative effects on performance? I don't follow. I guess it would depend on what you do, but generally speaking no. Also generally speaking, aggregating the CSS files would help. Getting rid of redundant rules would help.
I am not actually sure that the aggregating thing is available in D5. BradleyT, do you know when that was introduced?
Anyway, modifying CSS is sort of the point and it's how your developer got your site to look the way he/you wanted. So I would say there's some miscommunication here somewhere along the line.
With 20 css files though I would probably test it - that's a lot of http requests.