Hello,
With a pure Laravel / blade app, I have a problem : when the pages load, the screen becomes white for a while and the pages loads (less than one second), and this generates a sensation of blinking.
This comes probably from the JS scripts loading in the head.
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Paintball</title>
<link href="{{ mix('css/app.css') }}" rel="stylesheet">
<script src="{{ mix('js/app.js') }}"></script>
<script src="{{ mix('js/fontawesome.js') }}"></script>
<script src="//unpkg.com/alpinejs" defer></script>
@livewireStyles
</head>
Or perhaps from the layout blade file.
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
@include('layouts.partials.head')
<body id="home" class="antialiased">
@include('layouts.partials.header')
<main>
@yield('content')
</main>
@include('layouts.partials.footer')
@livewireScripts
</body>
</html>
I have tried to add defer inside all JS script tags but nothing changes.
If you need more information, ask me.
If you have any idea, I would be happy to receive help ;).
Thanks a lot.
V