Improve assets loading: remove http call to load task colors and async load of app.js
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
<?= $this->asset->js('assets/js/vendor/d3.v3.min.js') ?>
|
||||
<?= $this->asset->js('assets/js/vendor/c3.min.js') ?>
|
||||
|
||||
<section id="main">
|
||||
<div class="page-header">
|
||||
<ul>
|
||||
@@ -32,4 +29,7 @@
|
||||
<?= $content_for_sublayout ?>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
<?= $this->asset->js('assets/js/vendor/d3.v3.min.js') ?>
|
||||
<?= $this->asset->js('assets/js/vendor/c3.min.js') ?>
|
||||
@@ -1,6 +1,3 @@
|
||||
<?= $this->asset->js('assets/js/vendor/d3.v3.min.js') ?>
|
||||
<?= $this->asset->js('assets/js/vendor/c3.min.js') ?>
|
||||
|
||||
<div class="page-header">
|
||||
<h2><?= t('Budget overview') ?></h2>
|
||||
</div>
|
||||
@@ -32,3 +29,6 @@
|
||||
<?php else: ?>
|
||||
<p class="alert"><?= t('There is not enough data to show something.') ?></p>
|
||||
<?php endif ?>
|
||||
|
||||
<?= $this->asset->js('assets/js/vendor/d3.v3.min.js') ?>
|
||||
<?= $this->asset->js('assets/js/vendor/c3.min.js') ?>
|
||||
@@ -12,12 +12,12 @@
|
||||
<?php endif ?>
|
||||
|
||||
<?php if (! isset($not_editable)): ?>
|
||||
<?= $this->asset->js('assets/js/app.js') ?>
|
||||
<?= $this->asset->js('assets/js/app.js', true) ?>
|
||||
<?php endif ?>
|
||||
|
||||
<?= $this->asset->css($this->url->href('app', 'colors'), false, 'all') ?>
|
||||
<?= $this->asset->css('assets/css/app.css') ?>
|
||||
<?= $this->asset->css('assets/css/print.css', true, 'print') ?>
|
||||
<?= $this->asset->colorCss() ?>
|
||||
<?= $this->asset->customCss() ?>
|
||||
|
||||
<link rel="icon" type="image/png" href="assets/img/favicon.png">
|
||||
|
||||
Reference in New Issue
Block a user