drupal_add_js/css in _menu hook

Events happening in the community are now at Drupal community events on www.drupal.org.
yofly's picture

Hi All,

I'm using Drupal 5, and I'm working on some improvement of the menu system.
I just want to know why put some drupal_add_js/drupal_add_css in the _menu hook noncache part. We can put them just in the module file, the drupal_add_XX will be called when load modules, no? Can anyone tell me the difference?
Thanks.

Yan