mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 12:48:29 +00: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:
@@ -66,7 +66,7 @@ end
|
||||
|
||||
</div>
|
||||
<!-- ./wrapper -->
|
||||
<script src="<?=pihole.fileversion('scripts/js/footer.js')?>"></script>
|
||||
<script defer src="<?=pihole.fileversion('scripts/js/footer.js')?>"></script>
|
||||
|
||||
<div id="advanced-info-data" style="display: none;" data-starttime="<?=starttime?>" data-endtime="<?=mg.time(true)?>" data-client-ip="<?=mg.request_info.remote_addr?>" data-xff="<?=x_forwarded_for?>"></div>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user