summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-01-29 10:48:28 +0100
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2019-01-29 13:30:39 +0100
commit713828afde22d5e716a5f79b6f43129cc69ce292 (patch)
tree47201ef0edb25882b9326b6a199d03bd03e576ec /templates
parent83e58805fa38f1b10df8783147f9a6a8344e479f (diff)
Reduce the number of loaded scripts
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/index-public.php45
-rw-r--r--templates/index.php44
2 files changed, 4 insertions, 85 deletions
diff --git a/templates/index-public.php b/templates/index-public.php
index 96e1cd212..dc7609e41 100644
--- a/templates/index-public.php
+++ b/templates/index-public.php
@@ -5,49 +5,8 @@
vendor_script('select2/select2');
vendor_style('select2/select2');
-style('spreed', 'style');
-style('spreed', 'chatview');
-style('spreed', 'autocomplete');
-style('spreed', 'video');
-script(
- 'spreed',
- [
- 'vendor/backbone/backbone-min',
- 'vendor/backbone.radio/build/backbone.radio.min',
- 'vendor/backbone.marionette/lib/backbone.marionette.min',
- 'vendor/handlebars/handlebars.min',
- 'vendor/jshashes/hashes.min',
- 'vendor/Caret.js/dist/jquery.caret.min',
- 'vendor/At.js/dist/js/jquery.atwho.min',
- 'models/chatmessage',
- 'models/chatmessagecollection',
- 'models/localstoragemodel',
- 'models/room',
- 'models/roomcollection',
- 'models/participant',
- 'models/participantcollection',
- 'views/callbutton',
- 'views/callinfoview',
- 'views/chatview',
- 'views/editabletextlabel',
- 'views/emptycontentview',
- 'views/mediacontrolsview',
- 'views/participantlistview',
- 'views/participantview',
- 'views/richobjectstringparser',
- 'views/roomlistview',
- 'views/sidebarview',
- 'views/tabview',
- 'views/templates',
- 'views/virtuallist',
- 'simplewebrtc',
- 'webrtc',
- 'signaling',
- 'connection',
- 'app',
- 'init',
- ]
-);
+style('spreed', 'merged');
+script('spreed', 'merged-guest');
?>
<div id="app" class="nc-enable-screensharing-extension" data-token="<?php p($_['token']) ?>">
diff --git a/templates/index.php b/templates/index.php
index e42367800..cb1ed0afd 100644
--- a/templates/index.php
+++ b/templates/index.php
@@ -5,48 +5,8 @@
vendor_script('select2/select2');
vendor_style('select2/select2');
-style('spreed', 'style');
-style('spreed', 'chatview');
-style('spreed', 'autocomplete');
-style('spreed', 'video');
-script(
- 'spreed',
- [
- 'vendor/backbone/backbone-min',
- 'vendor/backbone.radio/build/backbone.radio.min',
- 'vendor/backbone.marionette/lib/backbone.marionette.min',
- 'vendor/handlebars/handlebars.min',
- 'vendor/jshashes/hashes.min',
- 'vendor/Caret.js/dist/jquery.caret.min',
- 'vendor/At.js/dist/js/jquery.atwho.min',
- 'models/chatmessage',
- 'models/chatmessagecollection',
- 'models/room',
- 'models/roomcollection',
- 'models/participant',
- 'models/participantcollection',
- 'views/callbutton',
- 'views/callinfoview',
- 'views/chatview',
- 'views/editabletextlabel',
- 'views/emptycontentview',
- 'views/mediacontrolsview',
- 'views/participantlistview',
- 'views/participantview',
- 'views/richobjectstringparser',
- 'views/roomlistview',
- 'views/sidebarview',
- 'views/tabview',
- 'views/templates',
- 'views/virtuallist',
- 'simplewebrtc',
- 'webrtc',
- 'signaling',
- 'connection',
- 'app',
- 'init',
- ]
-);
+style('spreed', 'merged');
+script('spreed', 'merged');
?>
<div id="app" class="nc-enable-screensharing-extension" data-token="<?php p($_['token']) ?>">