Update scripts to defer

This commit is contained in:
Karthik Kasturi 2025-08-04 03:09:04 +05:30 committed by GitHub
parent f739b5b6a9
commit 4f8fc4873a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,28 +29,28 @@ endif;
<?php
if ($QRCODE) :
?>
<?php $this->_scriptTag('js/kjua-0.10.0.js', 'async'); ?>
<?php $this->_scriptTag('js/kjua-0.10.0.js', 'defer'); ?>
<?php
endif;
?>
<?php $this->_scriptTag('js/zlib-1.3.1-1.js', 'defer'); ?>
<?php $this->_scriptTag('js/base-x-5.0.1.js', 'defer'); ?>
<?php $this->_scriptTag('js/bootstrap-5.3.7.js', 'async'); ?>
<?php $this->_scriptTag('js/bootstrap-5.3.7.js', 'defer'); ?>
<?php $this->_scriptTag('js/dark-mode-switch.js', 'defer'); ?>
<?php
if ($SYNTAXHIGHLIGHTING) :
?>
<?php $this->_scriptTag('js/prettify.js', 'async'); ?>
<?php $this->_scriptTag('js/prettify.js', 'defer'); ?>
<?php
endif;
if ($MARKDOWN) :
?>
<?php $this->_scriptTag('js/showdown-2.1.0.js', 'async'); ?>
<?php $this->_scriptTag('js/showdown-2.1.0.js', 'defer'); ?>
<?php
endif;
?>
<?php $this->_scriptTag('js/purify-3.2.6.js', 'defer'); ?>
<?php $this->_scriptTag('js/legacy.js', 'async'); ?>
<?php $this->_scriptTag('js/legacy.js', 'defer'); ?>
<?php $this->_scriptTag('js/privatebin.js', 'defer'); ?>
<!-- icon -->
<link rel="apple-touch-icon" href="<?php echo I18n::encode($BASEPATH); ?>img/apple-touch-icon.png" sizes="180x180" />