Skip to content

Commit 0f1f28f

Browse files
authored
Merge pull request #494 from hydephp/update-hydefront
Add x-cloak as inline styles to prevent Alpine.js flashes
2 parents cfe5aea + 94c0671 commit 0f1f28f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

RELEASE_NOTES.md

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ In general, these changes should only affect those who have written custom code
6969

7070
### Fixed
7171
- Fixed validation bug in the rebuild command
72+
- Add x-cloak as inline style in styles.blade.php to prevent flashes until stylesheets are loaded
7273

7374
### Security
7475
- in case of vulnerabilities.

packages/framework/resources/views/layouts/styles.blade.php

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
{{-- Prevent Alpine.js flashes --}}
2+
<style>[x-cloak] {display: none!important}</style>
3+
14
{{-- The compiled Tailwind/App styles --}}
25
@if(config('hyde.load_app_styles_from_cdn', false))
36
<link rel="stylesheet" href="{{ Asset::cdnLink('app.css') }}">

0 commit comments

Comments
 (0)