Skip to content
This repository has been archived by the owner on Apr 27, 2022. It is now read-only.

Commit

Permalink
Satukan berkas vendor untuk mengurangi permintaan HTTP
Browse files Browse the repository at this point in the history
  • Loading branch information
dikisiswanto committed May 1, 2019
1 parent 020829d commit 3e61f10
Show file tree
Hide file tree
Showing 9 changed files with 41,781 additions and 22 deletions.
16,340 changes: 16,340 additions & 0 deletions assets/css/vendor.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/css/vendor.min.css

Large diffs are not rendered by default.

25,426 changes: 25,426 additions & 0 deletions assets/js/vendor.js

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions assets/js/vendor.min.js

Large diffs are not rendered by default.

12 changes: 1 addition & 11 deletions commons/source_css.php
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed'); ?>

<link href="https://fonts.googleapis.com/css?family=Montserrat:300,600,700" rel="stylesheet">
<link rel="stylesheet" href="<?= base_url("$this->theme_folder/$this->theme/vendor/bootstrap/css/bootstrap.min.css") ?>">
<link rel="stylesheet" href="<?= base_url("$this->theme_folder/$this->theme/assets/css/vendor.min.css") ?>">
<link rel="stylesheet" href="<?= base_url("$this->theme_folder/$this->theme/vendor/font-awesome/css/all.min.css") ?>">
<link rel="stylesheet" href="<?= base_url("$this->theme_folder/$this->theme/vendor/font-awesome/css/fontawesome.min.css")?>">
<link rel="stylesheet" href="<?= base_url("$this->theme_folder/$this->theme/vendor/ace-menu/css/ace-responsive-menu.min.css") ?>">
<link rel="stylesheet" href="<?= base_url("$this->theme_folder/$this->theme/vendor/owl-carousel/css/owl.carousel.min.css") ?>">
<link rel="stylesheet" href="<?= base_url("$this->theme_folder/$this->theme/vendor/owl-carousel/css/owl.theme.default.min.css") ?>">
<link rel="stylesheet" href="<?= base_url("$this->theme_folder/$this->theme/vendor/fancybox/css/jquery.fancybox.min.css") ?>">
<link rel="stylesheet" href="<?= base_url("$this->theme_folder/$this->theme/vendor/jssocial/css/jssocials.min.css") ?>">
<link rel="stylesheet" href="<?= base_url("$this->theme_folder/$this->theme/vendor/jssocial/css/jssocials-theme-flat.css") ?>">
<link rel="stylesheet" href="<?= base_url("assets/css/leaflet.css")?>">
<link rel="stylesheet" href="<?= base_url("$this->theme_folder/$this->theme/assets/css/animate.min.css") ?>">
<link rel="stylesheet" href="<?= base_url("$this->theme_folder/$this->theme/assets/css/loader.min.css") ?>">
<link rel="stylesheet" href="<?= base_url("$this->theme_folder/$this->theme/assets/css/comments.min.css") ?>">
<link rel="stylesheet" href="<?= base_url("$this->theme_folder/$this->theme/assets/css/style.min.css") ?>">
<?php if (is_file("desa/css/$this->theme/desa-web.css")): ?>
<!-- Extra CSS untuk tema cosmos. Timpa aturan css di berkas ini. -->
Expand Down
9 changes: 1 addition & 8 deletions commons/source_js.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
<?php if(!defined('BASEPATH')) exit('No direct script access allowed'); ?>

<script src="<?= base_url("$this->theme_folder/$this->theme/vendor/jquery/jquery.min.js") ?>"></script>
<script defer src="<?= base_url("$this->theme_folder/$this->theme/vendor/bootstrap/js/bootstrap.min.js") ?>"></script>
<script defer src="<?= base_url("$this->theme_folder/$this->theme/vendor/jquery/jquery.marquee.min.js") ?>"></script>
<script defer src="<?= base_url("$this->theme_folder/$this->theme/vendor/owl-carousel/js/owl.carousel.min.js") ?>"></script>
<script defer src="<?= base_url("$this->theme_folder/$this->theme/vendor/ace-menu/js/ace-responsive-menu.min.js") ?>"></script>
<script defer src="<?= base_url("$this->theme_folder/$this->theme/vendor/fancybox/js/jquery.fancybox.min.js") ?>"></script>
<script src="<?= base_url("$this->theme_folder/$this->theme/vendor/jssocial/js/jssocials.min.js") ?>"></script>
<script defer src="<?= base_url("$this->theme_folder/$this->theme/vendor/lazyload/js/jquery.lazy.min.js") ?>"></script>
<script src="<?= base_url("$this->theme_folder/$this->theme/assets/js/vendor.min.js") ?>"></script>
<script src="<?= base_url("assets/js/jquery.cycle2.min.js") ?>"></script>
<script src="<?= base_url("assets/js/jquery.cycle2.carousel.js") ?>"></script>
<script src="<?= base_url("assets/js/leaflet.js")?>"></script>
Expand Down
2 changes: 1 addition & 1 deletion partials/artikel.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<?php if($single_artikel['gambar'] != '' && is_file(LOKASI_FOTO_ARTIKEL.'sedang_'.$single_artikel['gambar'])) : ?>
<figure class="foto-artikel">
<a href="<?= AmbilFotoArtikel($single_artikel['gambar'], 'sedang') ?>" data-fancybox="images">
<img data-src="<?= AmbilFotoArtikel($single_artikel['gambar'], 'sedang') ?>" alt="<?= $single_artikel['judul'] ?>" class="img-fluid lazy">
<img data-src="<?= AmbilFotoArtikel($single_artikel['gambar'], 'sedang') ?>" class="img-fluid lazy">
</a>
</figure>
<?php endif ?>
Expand Down
2 changes: 1 addition & 1 deletion partials/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<div class="card-image">
<a href="<?= $url ?>">
<?php if($data['gambar'] && is_file(LOKASI_FOTO_ARTIKEL.'kecil_'.$data['gambar'])) : ?>
<img data-src="<?= AmbilFotoArtikel($data['gambar'],'kecil') ?>" alt="<?= $data['judul'] ?>" class="img-fluid lazy">
<img data-src="<?= AmbilFotoArtikel($data['gambar'],'kecil') ?>" class="img-fluid lazy">
<?php else : ?>
<img data-src="<?= base_url('assets/images/404-image-not-found.jpg') ?>" alt="" class="img-fluid lazy">
<?php endif ?>
Expand Down
2 changes: 1 addition & 1 deletion partials/slider.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<?php $img = $slider_gambar['lokasi'] . 'sedang_' . $data['gambar']; ?>
<?php if(is_file($img)) : ?>
<div class="item">
<img data-src="<?= base_url($img) ?>" alt="<?= $data['judul'] ?>" class="img-fluid owl-lazy lazy">
<img data-src="<?= base_url($img) ?>" alt="<?= $data['judul'] ?>" class="img-fluid owl-lazy">
</div>
<?php endif ?>
<?php endforeach ?>
Expand Down

0 comments on commit 3e61f10

Please sign in to comment.