mirror of
https://github.com/pi-hole/web.git
synced 2026-04-18 07:56:24 +01:00
Refactor assets loading
* move fonts first * move CSS and JS along with the rest * move default auto theme media checks to the HEAD instead of imports Also, use `script defer`. This makes the JS files non-blocking. Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
@@ -48,5 +48,5 @@ mg.include('scripts/lua/header_authenticated.lp','r')
|
||||
|
||||
<pre id="output" style="width: 100%; height: 100%;" hidden></pre>
|
||||
|
||||
<script src="<?=pihole.fileversion('scripts/js/search.js')?>"></script>
|
||||
<script defer src="<?=pihole.fileversion('scripts/js/search.js')?>"></script>
|
||||
<? mg.include('scripts/lua/footer.lp','r')?>
|
||||
|
||||
Reference in New Issue
Block a user