From 6dc35e22fd6dce168f5f2d7c5b847f8c8a6d03f6 Mon Sep 17 00:00:00 2001 From: Constantin Plaiasu Date: Tue, 10 Sep 2024 16:12:42 +0300 Subject: [PATCH] performance updates --- public/build/assets/home-6GBdEVYw.js | 1 - public/build/assets/home-mbsL_elV.js | 1 + public/build/manifest.json | 2 +- resources/js/home.js | 2 +- resources/views/home.blade.php | 8 ++++++-- 5 files changed, 9 insertions(+), 5 deletions(-) delete mode 100644 public/build/assets/home-6GBdEVYw.js create mode 100644 public/build/assets/home-mbsL_elV.js diff --git a/public/build/assets/home-6GBdEVYw.js b/public/build/assets/home-6GBdEVYw.js deleted file mode 100644 index 68fdb2b..0000000 --- a/public/build/assets/home-6GBdEVYw.js +++ /dev/null @@ -1 +0,0 @@ -function r(){var e=$(".hero__slider");e&&(e.on("init",function(a,o){var i=$(".movie-slide:first-child").find("[data-animation]");t(i)}),e.on("beforeChange",function(a,o,i,s){var n=$('.movie-slide[data-slick-index="'+s+'"]').find("[data-animation]");t(n)}),e.slick({autoplay:!0,autoplaySpeed:3e3,lazyLoad:"ondemand",dots:!0,fade:!1,arrows:!1,slidesToShow:1,responsive:[{breakpoint:1024,settings:{slidesToShow:1,slidesToScroll:1,infinite:!0}},{breakpoint:991,settings:{slidesToShow:1,slidesToScroll:1,arrows:!1}},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1,arrows:!1}}]}));function t(a){var o="webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend";a.each(function(){var i=$(this),s=i.data("delay"),n="animated "+i.data("animation");i.css({"animation-delay":s,"-webkit-animation-delay":s}),i.addClass(n).one(o,function(){i.removeClass(n)})})}}r();$(".movie-slider-one").slick({autoplay:!0,slidesToShow:7,slidesToScroll:1,infinite:!0,speed:700,dots:!1,arrows:!0,nextArrow:'',prevArrow:'',responsive:[{breakpoint:1650,settings:{slidesToShow:5}},{breakpoint:1200,settings:{slidesToShow:4}},{breakpoint:992,settings:{slidesToShow:3}},{breakpoint:768,settings:{slidesToShow:2}},{breakpoint:512,settings:{slidesToShow:2}}]});(function(e){"user strict"})(jQuery);document.addEventListener("readystatechange",e=>{}); diff --git a/public/build/assets/home-mbsL_elV.js b/public/build/assets/home-mbsL_elV.js new file mode 100644 index 0000000..2a59407 --- /dev/null +++ b/public/build/assets/home-mbsL_elV.js @@ -0,0 +1 @@ +function r(){var e=$(".hero__slider");e&&(e.on("init",function(a,t){var i=$(".movie-slide:first-child").find("[data-animation]");o(i)}),e.on("beforeChange",function(a,t,i,s){var n=$('.movie-slide[data-slick-index="'+s+'"]').find("[data-animation]");o(n)}),e.slick({autoplay:!0,autoplaySpeed:3e3,dots:!0,fade:!1,arrows:!1,slidesToShow:1,responsive:[{breakpoint:1024,settings:{slidesToShow:1,slidesToScroll:1,infinite:!0}},{breakpoint:991,settings:{slidesToShow:1,slidesToScroll:1,arrows:!1}},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1,arrows:!1}}]}));function o(a){var t="webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend";a.each(function(){var i=$(this),s=i.data("delay"),n="animated "+i.data("animation");i.css({"animation-delay":s,"-webkit-animation-delay":s}),i.addClass(n).one(t,function(){i.removeClass(n)})})}}r();$(".movie-slider-one").slick({autoplay:!0,slidesToShow:7,slidesToScroll:1,infinite:!0,speed:700,dots:!1,arrows:!0,nextArrow:'',prevArrow:'',responsive:[{breakpoint:1650,settings:{slidesToShow:5}},{breakpoint:1200,settings:{slidesToShow:4}},{breakpoint:992,settings:{slidesToShow:3}},{breakpoint:768,settings:{slidesToShow:2}},{breakpoint:512,settings:{slidesToShow:2}}]});(function(e){"user strict"})(jQuery);document.addEventListener("readystatechange",e=>{}); diff --git a/public/build/manifest.json b/public/build/manifest.json index 8f17c16..2d5a4db 100644 --- a/public/build/manifest.json +++ b/public/build/manifest.json @@ -6,7 +6,7 @@ "isEntry": true }, "resources/js/home.js": { - "file": "assets/home-6GBdEVYw.js", + "file": "assets/home-mbsL_elV.js", "name": "home", "src": "resources/js/home.js", "isEntry": true diff --git a/resources/js/home.js b/resources/js/home.js index ebd0a90..c9d6511 100644 --- a/resources/js/home.js +++ b/resources/js/home.js @@ -20,7 +20,7 @@ BasicSlider.slick({ autoplay: true, autoplaySpeed: 3000, - lazyLoad: 'ondemand', + // lazyLoad: 'ondemand', dots: true, fade: false, arrows: false, diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php index 45fff50..ee10344 100644 --- a/resources/views/home.blade.php +++ b/resources/views/home.blade.php @@ -3,7 +3,9 @@ @push('head') @if(!empty($hero)) - +{{-- --}} + +{{-- --}} @endif