There is currently one layout file from which the rest of the files are extending
@extends('layouts.main')
@section('content')
// .. page content ..
On many pages, there's a split second while it loads where resources display at the "natural" form, so stuff like select plugins just show raw html, images that are used as icons are showing full size before resizing and the content just "wiggles" before it stays still
I suspect it's something to do with the JavaScript and how it's setup in the main layout file.
The JS scripts all have defer keyword in them and this is the order in the layout file:
<html>
<head>
<meta ...>
<meta ...>
<meta ...>
<title> some title </title>
<script src=" ... " defer></script>
<script src=" ... " defer></script>
<script src=" ... " defer></script>
<script src=" ... " defer></script>
<link href=" ... " rel="stylesheet">
<link href=" ... " rel="stylesheet">
<link href=" ... " rel="stylesheet">
<link href=" ... " rel="stylesheet">
</head>
<body>
<main>
@yield('content')
</main>
@stack('scripts')
</body>
</html>
Could it be related to the order of the JS file loading and their usage of defer?