Skip to content

Reference: Minification

✌ Makis Tracend edited this page Jun 27, 2013 · 6 revisions

The server is capable of more than just delivering static content and KISSCMS brings the minification to the server side.

Scripts

Data attributes

  • data-group
  • data-type
  • data-path
  • data-deps

External scripts

You can include scripts from different domains in minification process. As a convention, all extenal URLs are expected to belong in a group with other scripts, from which the local script name will derive.

Stylesheets

Data attributes

  • data-group
  • data-type

Position

The minified scripts are added right before the main.js file whereas the styles are appended to the head section. For both scripts and styles this rule is overridden when a tag has the id of a "{{group}}-min". Then the minified file takes the place of that tag

Clone this wiki locally