mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-12-25 07:19:31 -05:00
refactor: deferring everything including all potential deps
Also works on Safari…
This commit is contained in:
parent
5b3537a7cf
commit
628b60dcb4
@ -42,7 +42,7 @@ if ($SYNTAXHIGHLIGHTING) :
|
|||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
<noscript><link type="text/css" rel="stylesheet" href="css/noscript.css" /></noscript>
|
<noscript><link type="text/css" rel="stylesheet" href="css/noscript.css" /></noscript>
|
||||||
<?php $this->_scriptTag('js/jquery-3.7.1.js'); ?>
|
<?php $this->_scriptTag('js/jquery-3.7.1.js', 'defer'); ?>
|
||||||
<?php
|
<?php
|
||||||
if ($QRCODE) :
|
if ($QRCODE) :
|
||||||
?>
|
?>
|
||||||
@ -56,8 +56,8 @@ if ($ZEROBINCOMPATIBILITY) :
|
|||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
<?php $this->_scriptTag('js/zlib-1.3.1.js', 'async'); ?>
|
<?php $this->_scriptTag('js/zlib-1.3.1.js', 'async'); ?>
|
||||||
<?php $this->_scriptTag('js/base-x-4.0.0.js'); ?>
|
<?php $this->_scriptTag('js/base-x-4.0.0.js', 'defer'); ?>
|
||||||
<?php $this->_scriptTag('js/rawinflate-0.3.js'); ?>
|
<?php $this->_scriptTag('js/rawinflate-0.3.js', 'defer'); ?>
|
||||||
<?php $this->_scriptTag('js/bootstrap-3.4.1.js', 'defer'); ?>
|
<?php $this->_scriptTag('js/bootstrap-3.4.1.js', 'defer'); ?>
|
||||||
<?php
|
<?php
|
||||||
if ($SYNTAXHIGHLIGHTING) :
|
if ($SYNTAXHIGHLIGHTING) :
|
||||||
|
@ -25,7 +25,7 @@ if ($SYNTAXHIGHLIGHTING) :
|
|||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
<noscript><link type="text/css" rel="stylesheet" href="css/noscript.css" /></noscript>
|
<noscript><link type="text/css" rel="stylesheet" href="css/noscript.css" /></noscript>
|
||||||
<?php $this->_scriptTag('js/jquery-3.7.1.js'); ?>
|
<?php $this->_scriptTag('js/jquery-3.7.1.js', 'defer'); ?>
|
||||||
<?php
|
<?php
|
||||||
if ($QRCODE) :
|
if ($QRCODE) :
|
||||||
?>
|
?>
|
||||||
@ -34,13 +34,13 @@ if ($QRCODE) :
|
|||||||
endif;
|
endif;
|
||||||
if ($ZEROBINCOMPATIBILITY) :
|
if ($ZEROBINCOMPATIBILITY) :
|
||||||
?>
|
?>
|
||||||
<?php $this->_scriptTag('js/base64-1.7.js', 'async'); ?>
|
<?php $this->_scriptTag('js/base64-1.7.js', 'defer'); ?>
|
||||||
<?php
|
<?php
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
<?php $this->_scriptTag('js/zlib-1.3.1.js', 'async'); ?>
|
<?php $this->_scriptTag('js/zlib-1.3.1.js', 'defer'); ?>
|
||||||
<?php $this->_scriptTag('js/base-x-4.0.0.js'); ?>
|
<?php $this->_scriptTag('js/base-x-4.0.0.js', 'defer'); ?>
|
||||||
<?php $this->_scriptTag('js/rawinflate-0.3.js'); ?>
|
<?php $this->_scriptTag('js/rawinflate-0.3.js', 'defer'); ?>
|
||||||
<?php $this->_scriptTag('js/bootstrap-5.3.3.js', 'async'); ?>
|
<?php $this->_scriptTag('js/bootstrap-5.3.3.js', 'async'); ?>
|
||||||
<?php $this->_scriptTag('js/dark-mode-switch.js', 'defer'); ?>
|
<?php $this->_scriptTag('js/dark-mode-switch.js', 'defer'); ?>
|
||||||
<?php
|
<?php
|
||||||
@ -55,8 +55,8 @@ if ($MARKDOWN) :
|
|||||||
<?php
|
<?php
|
||||||
endif;
|
endif;
|
||||||
?>
|
?>
|
||||||
<?php $this->_scriptTag('js/purify-3.1.6.js', 'async'); ?>
|
<?php $this->_scriptTag('js/purify-3.1.6.js', 'defer'); ?>
|
||||||
<?php $this->_scriptTag('js/legacy.js', 'async'); ?>
|
<?php $this->_scriptTag('js/legacy.js', 'defer'); ?>
|
||||||
<?php $this->_scriptTag('js/privatebin.js', 'defer'); ?>
|
<?php $this->_scriptTag('js/privatebin.js', 'defer'); ?>
|
||||||
<!-- icon -->
|
<!-- icon -->
|
||||||
<link rel="apple-touch-icon" href="<?php echo I18n::encode($BASEPATH); ?>img/apple-touch-icon.png" sizes="180x180" />
|
<link rel="apple-touch-icon" href="<?php echo I18n::encode($BASEPATH); ?>img/apple-touch-icon.png" sizes="180x180" />
|
||||||
|
Loading…
Reference in New Issue
Block a user