Load content-type specific CSS/JS files dynamically from your theme.

This module is super light weight.
Chances are good you have the following...

  1. A bunch of custom CSS (and occasional JS) code for each content type.
  2. Some special nodes with their own CSS and JS (home page, etc).
  3. You usually add all of this to your theme.

This module will load content type (and node) specific code CSS and JS files from your theme when on the appropriate pages. This code is added to the head after other assets. It will check for the existence of such files before including them in the output header. Code will be loaded whenever the node is loaded, even by a view (when in full or teaser mode). This module has no UI, it just loads files from your theme. Add files to your theme like so...

sites/all/themes/MYTHEME/css/content-types/MYTYPE.css
sites/all/themes/MYTHEME/js/content-types/MYTYPE.js
sites/all/themes/MYTHEME/css/nodes/NODEID.css
sites/all/themes/MYTHEME/js/nodes/NODEID.js

*NOTE: The D6 version does not add JS by content type. Can add if someone requests it.

OTHER OPTIONS
Code per Node Full featured, editor UI, etc.
Context Add Assets Complex inclusion rules and theme independence.
CSS Injector "configurable rules"
Sweaver "change the fonts, colours without knowing CSS"
JS Injector "configurable rules"

Supporting organizations: 

Project information

Releases