performance updates

This commit is contained in:
Constantin Plaiasu 2024-09-10 02:50:54 +03:00
parent 7cd21a9ceb
commit 58fcc5f791
9 changed files with 39 additions and 3 deletions

Binary file not shown.

View file

@ -22,6 +22,8 @@
"@fontsource/bai-jamjuree": "^5.0.8", "@fontsource/bai-jamjuree": "^5.0.8",
"@fontsource/roboto": "^5.0.8", "@fontsource/roboto": "^5.0.8",
"basiclightbox": "^5.0.4", "basiclightbox": "^5.0.4",
"jquery": "^3.7.1" "jquery": "^3.7.1",
"slick-carousel": "^1.8.1",
"slick-carousel-latest": "^1.9.0"
} }
} }

View file

@ -0,0 +1 @@

View file

@ -29,6 +29,12 @@
"src": "resources/js/load-more.js", "src": "resources/js/load-more.js",
"isEntry": true "isEntry": true
}, },
"resources/js/slick.js": {
"file": "assets/slick-l0sNRNKZ.js",
"name": "slick",
"src": "resources/js/slick.js",
"isEntry": true
},
"resources/js/watch.js": { "resources/js/watch.js": {
"file": "assets/watch-l0sNRNKZ.js", "file": "assets/watch-l0sNRNKZ.js",
"name": "watch", "name": "watch",

View file

@ -1,5 +1,5 @@
'use strict'; 'use strict';
// import slickCarousel from 'slick-carousel'
// $('#langSel').niceSelect(); // $('#langSel').niceSelect();
// new WOW().init(); // new WOW().init();
@ -75,6 +75,7 @@ mainSlider();
// $(window).on('load', function() {})
$('.movie-slider-one').slick({ $('.movie-slider-one').slick({
lazyLoad: 'ondemand', lazyLoad: 'ondemand',
@ -154,6 +155,7 @@ $('.movie-slider-one').slick({
(function ($) { (function ($) {
"user strict"; "user strict";
})(jQuery); })(jQuery);

1
resources/js/slick.js Normal file
View file

@ -0,0 +1 @@

View file

@ -1,6 +1,8 @@
@extends('layouts.layout') @extends('layouts.layout')
@push('head') @push('head')
<link rel="preconnect" href="https://cdn.jsdelivr.net" crossorigin>
<style> <style>
{!! Vite::content('resources/scss/home.scss') !!} {!! Vite::content('resources/scss/home.scss') !!}
{!! Vite::content('resources/scss/animate.scss') !!} {!! Vite::content('resources/scss/animate.scss') !!}
@ -64,6 +66,7 @@
@section('footer') @section('footer')
<script type="module" src="{{ asset('js/vendor/slick.min.js') }}"></script> {{-- <script type="module" src="{{ asset('js/vendor/slick.min.js') }}"></script> --}}
<script src="https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js"></script>
@vite(['resources/js/home.js']) @vite(['resources/js/home.js'])
@endsection @endsection

View file

@ -40,6 +40,7 @@ export default defineConfig({
'resources/js/watch.js', 'resources/js/watch.js',
'resources/js/load-more.js', 'resources/js/load-more.js',
'resources/js/jqfix.js', 'resources/js/jqfix.js',
'resources/js/slick.js',
// 'resources/js/components/Player.js', // 'resources/js/components/Player.js',
], ],
refresh: {paths:['./resources/*','./resources/views/*','./resources/views/*/*', './resources/scss/*', './resources/scss/*/*', './resources/js/*'], config:true}, refresh: {paths:['./resources/*','./resources/views/*','./resources/views/*/*', './resources/scss/*', './resources/scss/*/*', './resources/js/*'], config:true},

View file

@ -1752,6 +1752,8 @@ __metadata:
lodash: "npm:^4.17.21" lodash: "npm:^4.17.21"
postcss: "npm:^8.4.41" postcss: "npm:^8.4.41"
sass: "npm:^1.69.5" sass: "npm:^1.69.5"
slick-carousel: "npm:^1.8.1"
slick-carousel-latest: "npm:^1.9.0"
vanilla-lazyload: "npm:^17.9.0" vanilla-lazyload: "npm:^17.9.0"
vite: "npm:^5.4.2" vite: "npm:^5.4.2"
languageName: unknown languageName: unknown
@ -1809,6 +1811,24 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"slick-carousel-latest@npm:^1.9.0":
version: 1.9.0
resolution: "slick-carousel-latest@npm:1.9.0"
peerDependencies:
jquery: ">=1.8.0"
checksum: c893a1af6b2ab3af8ab95cafe28748170c7b0ae4d1363bf8afe5d18f04dc8be133d3a5ac803d109f6fd40306e30898a5c8213b6efc3abbcee405ae78a69a6d05
languageName: node
linkType: hard
"slick-carousel@npm:^1.8.1":
version: 1.8.1
resolution: "slick-carousel@npm:1.8.1"
peerDependencies:
jquery: ">=1.8.0"
checksum: e8c9c9a454c107cfee88689477b453449ed66d5343cf495d3135ec25ea736a0df862f625a9cdc8abd6262629ecef3343c5de686694831f99b13dfe837a1aa587
languageName: node
linkType: hard
"smart-buffer@npm:^4.2.0": "smart-buffer@npm:^4.2.0":
version: 4.2.0 version: 4.2.0
resolution: "smart-buffer@npm:4.2.0" resolution: "smart-buffer@npm:4.2.0"