[ar] [ast] [bg] [br] [ca] [co] [cpf] [cs] [da] [de] [en] [eo] [es] [eu] [fa] [fon] [fr] [gl] [id] [it] [ja] [lb] [nl] [oc] [pl] [pt] [ro] [ru] [sk] [sv] [tr] [uk] [vi] [zh] Espace de traduction



July 2010

All the versions of this article:

#INSERT_HEAD automatically inserts the scripts and stylesheets supplied by SPIP and its plugins.

The #INSERT_HEAD tag (since SPIP 1.9.1) must be included between the <head> and </head> tags in your template files. It enables SPIP and its extensions, as well as whatever plugins you use, to add content between these two HTML tags.

Since SPIP 2.0, there has been a compression function included. This functionality optimises the usage of available bandwidth for all of the elements passed with this tag, be removing any and all "superfluous" spaces and comments from the .js and .css files for all of the templates. This functionality can be enabled or disabled from within the configuration panel in the site’s private zone.

Since SPIP 2.1, it has been highly recommended that you systematically use this tag in your template files. This recommendation is because some certain core functionalities in SPIP have been transferred into extensions that now behave exactly like normal plugins.

Show the template of this page Site powered by SPIP | Translation area | Private area