#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.

Author Mark Published : Updated : 26/10/12

Translations : català, English, Español, français, Nederlands