I am using Laravel php. Head and Footer tags are in my app.blade file.But it doesn't run the preloader in the head tag when it's first opened. It also doesn't load the css file. It comes after 1-2 seconds exactly. It's too fast to take a screenshot, so I uploaded it as a video. I will add the lines of code below along with the video.
app.blade.php header codes:
@if(!isset($lang)) @php($lang = 'tr') @endif
@php($slug = Request::segment(1))
<!DOCTYPE html>
<html lang="tr">
<head>
<title>NovaPia Clinic</title>
<meta charset="UTF-8">
<meta name="description" content="NovaPia Clinic">
<meta name="keywords" content="Dentist, Clinic">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Stylesheets -->
<link rel="stylesheet" href="{{ asset('theme/css/style.css')}}"/>
<link rel="stylesheet" href="{{ asset('theme/css/responsive.css')}}"/>
<link rel="stylesheet" href="{{ asset('theme/css/animate.css')}}"/>
<link rel="shortcut icon" href="{{ asset('theme/img/favico.png')}}">
<link rel="stylesheet" href="{{ asset('theme/icon-fonts/fontawesome-5.0.6/css/fontawesome-all.min.css')}}"/>
<link rel="stylesheet" href="{{ asset('theme/icon-fonts/flaticon/flaticon.css')}}"/>
<link rel="stylesheet" href="{{ asset('theme/icon-fonts/flaticon/flaticon.svg')}}"/>
<link rel="stylesheet" href="{{ asset('theme/icon-fonts/flaticon/flaticon.ttf')}}"/>
<script src="https://kit.fontawesome.com/40e15e0d0d.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="{{ asset('theme/font/stylesheet.css')}}"/>
</head>
<body>
<div id="preloader">
<div class="loading-area">
<div class="logo" style=""><img src="{{ asset('theme/img/nova.png')}}" alt=""></div>
<span>yükleniyor...</span>
</div>
<div class="left-side"></div>
<div class="right-side"></div>
</div>
<div class="page-overlay">
<div class="page-transition"></div>
</div>
<main>
<header class="whitev">
<a href="index.html" class="logo" data-type="ajax-load">
<img src="{{ asset('img/nova.svg')}}" alt="">
</a>
<div class="nav-icon">
<span></span>
<span></span>
<span></span>
</div>
</header>```