-
Notifications
You must be signed in to change notification settings - Fork 6
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.
- data-group
- data-type
- data-path
- data-deps
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.
- data-group
- data-type
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