Preload Slider First Image Added

This commit is contained in:
devansh bawari 2021-08-02 13:05:47 +05:30
parent 49b63baeb8
commit 3327c2f0f1
1 changed files with 6 additions and 0 deletions

View File

@ -39,6 +39,12 @@
@endsection
@push('css')
@if (! empty($sliderData))
<link rel="preload" as="image" href="{{ asset('/storage/' . $sliderData[0]['path']) }}">
@else
<link rel="preload" as="image" href="{{ asset('/themes/velocity/assets/images/banner.webp') }}">
@endif
<style type="text/css">
.product-price span:first-child, .product-price span:last-child {
font-size: 18px;