feat: enhance security headers and optimize asset loading for improved performance and user experience
This commit is contained in:
@@ -57,9 +57,12 @@ $favicon_path = setting('site_favicon');
|
||||
@stack('structured-data')
|
||||
|
||||
<link rel="icon" href="{{ $favicon_path ? (str_starts_with($favicon_path, 'http') ? $favicon_path : asset($favicon_path)) : asset('assets/img/favicon.png') }}">
|
||||
@stack('head')
|
||||
<link rel="stylesheet" href="{{ asset('html/style.css') }}">
|
||||
<link rel="stylesheet" type="text/css" href="{{ asset('assets/fonts/unicons/unicons.css') }}">
|
||||
<link rel="stylesheet" href="{{ asset('assets/css/plugins.css') }}">
|
||||
<link rel="preload" href="{{ asset('assets/fonts/unicons/unicons.css') }}" as="style" onload="this.onload=null;this.rel='stylesheet'">
|
||||
<noscript><link rel="stylesheet" href="{{ asset('assets/fonts/unicons/unicons.css') }}"></noscript>
|
||||
<link rel="preload" href="{{ asset('assets/css/plugins.css') }}" as="style" onload="this.onload=null;this.rel='stylesheet'">
|
||||
<noscript><link rel="stylesheet" href="{{ asset('assets/css/plugins.css') }}"></noscript>
|
||||
<link rel="stylesheet" href="{{ asset('assets/css/colors/grape.css') }}">
|
||||
<link rel="preload" href="{{ asset('assets/css/fonts/urbanist.css') }}" as="style" onload="this.rel='stylesheet'">
|
||||
<link rel="preload" href="{{ asset('assets/css/fonts/space.css') }}" as="style" onload="this.rel='stylesheet'">
|
||||
@@ -232,7 +235,9 @@ $favicon_path = setting('site_favicon');
|
||||
@endif
|
||||
|
||||
{{-- Main Content --}}
|
||||
@yield('content')
|
||||
<main id="main-content">
|
||||
@yield('content')
|
||||
</main>
|
||||
|
||||
{{-- Dynamic Footer Template or Static Footer --}}
|
||||
@php
|
||||
@@ -278,8 +283,8 @@ $favicon_path = setting('site_favicon');
|
||||
@include('partials.footer')
|
||||
@endif
|
||||
|
||||
<script src="{{ asset('assets/js/plugins.js') }}"></script>
|
||||
<script src="{{ asset('assets/js/theme.js') }}"></script>
|
||||
<script src="{{ asset('assets/js/plugins.js') }}" defer></script>
|
||||
<script src="{{ asset('assets/js/theme.js') }}" defer></script>
|
||||
@stack('scripts')
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user