Combined loading of javascript files

This commit is contained in:
Raimund Schlüßler 2017-11-02 22:01:04 +01:00
parent a4c71e9a50
commit d03f107fbf
No known key found for this signature in database
GPG key ID: 036FA7EB1A599178
2 changed files with 13 additions and 10 deletions

12
js/merged.json Normal file
View file

@ -0,0 +1,12 @@
[
"vendor/angular/angular.min.js",
"vendor/angular-route/angular-route.min.js",
"vendor/angular-animate/angular-animate.min.js",
"vendor/angular-sanitize/angular-sanitize.min.js",
"vendor/angular-drag-and-drop-lists/angular-drag-and-drop-lists.min.js",
"vendor/ui-select/dist/select.min.js",
"vendor/jstimezonedetect/dist/jstz.min.js",
"vendor/ical.js/build/ical.min.js",
"vendor_legacy/jquery-timepicker/jquery.ui.timepicker.js",
"public/app.min.js"
]

View file

@ -1,14 +1,5 @@
<?php
script('tasks', 'vendor/angular/angular.min');
script('tasks', 'vendor/angular-route/angular-route.min');
script('tasks', 'vendor/angular-animate/angular-animate.min');
script('tasks', 'vendor/angular-sanitize/angular-sanitize.min');
script('tasks', 'vendor/angular-drag-and-drop-lists/angular-drag-and-drop-lists.min');
script('tasks', 'vendor/ui-select/dist/select.min');
script('tasks', 'vendor/jstimezonedetect/dist/jstz.min');
script('tasks', 'public/app.min');
script('tasks', 'vendor_legacy/jquery-timepicker/jquery.ui.timepicker');
script('tasks', 'vendor/ical.js/build/ical.min');
script('tasks', 'merged');
style('tasks', 'style');
style('tasks', 'vendor/angularui/ui-select/select2');
?>