aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/picwall.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/picwall.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/picwall.html')
-rw-r--r--tpl/picwall.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/tpl/picwall.html b/tpl/picwall.html
index 2083a629..8f8e0a0e 100644
--- a/tpl/picwall.html
+++ b/tpl/picwall.html
@@ -1,7 +1,9 @@
1<!DOCTYPE html> 1<!DOCTYPE html>
2<html> 2<html>
3<head>{include="includes"} 3<head>{include="includes"}
4<script src="inc/jquery.lazyload.min.js#"></script> 4{if="empty($GLOBALS['disablejquery'])"}
5 <script src="inc/jquery.lazyload.min.js#"></script>
6{/if}
5</head> 7</head>
6<body> 8<body>
7<div id="pageheader">{include="page.header"}</div> 9<div id="pageheader">{include="page.header"}</div>
@@ -16,9 +18,11 @@
16</center> 18</center>
17{include="page.footer"} 19{include="page.footer"}
18</body> 20</body>
21{if="empty($GLOBALS['disablejquery'])"}
19<script> 22<script>
20$(document).ready(function() { 23$(document).ready(function() {
21 $("img.lazyimage").show().lazyload(); 24 $("img.lazyimage").show().lazyload();
22}); 25});
23</script> 26</script>
27{/if}
24</html> \ No newline at end of file 28</html> \ No newline at end of file