php - Where is it best advised to include JavaScript and CSS files in Drupal? -


where best advised include javascript , css files, in case have theme , sub-theme? have same effect when use files .info file, template file, or module?

for javascript files, files being grouped called from. below order in called.

  1. libraries: libraries, settings, or jquery plugins
  2. modules: javascript files added modules
  3. themes: javascript files added theme (like in .info files)

see description $options given in drupal_add_js().

for css files, there 3 groups too.

  1. system layer css files (e.g. modules/system/system.menus.css , modules/system/system.theme.css)
  2. css files added modules
  3. css files added themes

see description $options in drupal_add_css().


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -