aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/page.footer.html
diff options
context:
space:
mode:
authorSebastien SAUVAGE <sebsauvage@sebsauvage.net>2013-03-01 22:21:10 +0100
committerSebastien SAUVAGE <sebsauvage@sebsauvage.net>2013-03-01 22:21:10 +0100
commit858c5c2b43ce16f6d4b388725ef2d7a95e4a1986 (patch)
treea5d4f24761bd768ea44118803162907f814c3980 /tpl/page.footer.html
parent58046a19ae3e8cba4b4dbef783bd3caed2f6e881 (diff)
downloadShaarli-858c5c2b43ce16f6d4b388725ef2d7a95e4a1986.tar.gz
Shaarli-858c5c2b43ce16f6d4b388725ef2d7a95e4a1986.tar.zst
Shaarli-858c5c2b43ce16f6d4b388725ef2d7a95e4a1986.zip
Added option to disable jQuery and heavy javascript
Shaarli uses light Javascript in its normal operation, and some jQuery for some features (autocomplete in tags, QR-Code popup...). jQuery can be slow on small computers. An option has been added in configuration screen to disable javascript features which are hard on CPU. (Note that the Picture Wall is awfully heavy *without* jQuery.) (Side note: A *LOT* of users want Shaarli to work without javasript at all, if possible. That's why I try to use as few javascript as possible: It keeps Shaarli pages fast.)
Diffstat (limited to 'tpl/page.footer.html')
-rw-r--r--tpl/page.footer.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/tpl/page.footer.html b/tpl/page.footer.html
index 7fe15017..13b566ae 100644
--- a/tpl/page.footer.html
+++ b/tpl/page.footer.html
@@ -8,7 +8,7 @@
8<script language="JavaScript">function confirmDeleteLink() { var agree=confirm("Are you sure you want to delete this link ?"); if (agree) return true ; else return false ; }</script> 8<script language="JavaScript">function confirmDeleteLink() { var agree=confirm("Are you sure you want to delete this link ?"); if (agree) return true ; else return false ; }</script>
9{/if} 9{/if}
10 10
11{if="$GLOBALS['config']['OPEN_SHAARLI'] || isLoggedIn()"} 11{if="($GLOBALS['config']['OPEN_SHAARLI'] || isLoggedIn()) && empty($GLOBALS['disablejquery'])"}
12<script language="JavaScript"> 12<script language="JavaScript">
13$(document).ready(function() 13$(document).ready(function()
14{ 14{