diff options
-rw-r--r-- | TyrianTemplate.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/TyrianTemplate.php b/TyrianTemplate.php index 48819fc..93d8e73 100644 --- a/TyrianTemplate.php +++ b/TyrianTemplate.php @@ -205,7 +205,8 @@ class TyrianTemplate extends BaseTemplate { </div> </div> </footer> - <script src="https://assets.gentoo.org/tyrian/bootstrap.min.js"></script> + <script>function defer(method) { if (window.jQuery) { method(); } else { setTimeout(function() { defer(method) }, 50); } } + defer(function() { mw.loader.load( 'https://assets.gentoo.org/tyrian/bootstrap.min.js'); });</script> <?php } |