From 246e9b4e37cf85a04f52a22a61a4e705d51f96b4 Mon Sep 17 00:00:00 2001 From: Sebastien SAUVAGE Date: Wed, 25 Sep 2013 21:27:50 +0200 Subject: Removed jQuery from almost all pages jQuery has been removed from all pages, except those who really require it (like autocomplete in link edition). Immediate gain: All pages weight 286 kb LESS ! \o/ Highlighting in search results has also been temporarly removed (and will be re-implemented). --- tpl/changetag.html | 12 +++++++++++- tpl/editlink.html | 12 +++++++++++- tpl/includes.html | 1 - tpl/linklist.html | 1 - tpl/page.footer.html | 21 --------------------- tpl/picwall.html | 4 +++- 6 files changed, 25 insertions(+), 26 deletions(-) (limited to 'tpl') diff --git a/tpl/changetag.html b/tpl/changetag.html index b0bd0d06..b22bddea 100644 --- a/tpl/changetag.html +++ b/tpl/changetag.html @@ -1,6 +1,8 @@ -{include="includes"} +{include="includes"} +{if="empty($GLOBALS['disablejquery'])"}{/if} + {include="page.footer"} +{if="($GLOBALS['config']['OPEN_SHAARLI'] || isLoggedIn()) && empty($GLOBALS['disablejquery'])"} + +{/if} \ No newline at end of file diff --git a/tpl/editlink.html b/tpl/editlink.html index ad549137..4a2c30cc 100644 --- a/tpl/editlink.html +++ b/tpl/editlink.html @@ -1,6 +1,8 @@ -{include="includes"} +{include="includes"} +{if="empty($GLOBALS['disablejquery'])"}{/if} + {include="page.footer"} +{if="($GLOBALS['config']['OPEN_SHAARLI'] || isLoggedIn()) && empty($GLOBALS['disablejquery'])"} + +{/if} \ No newline at end of file diff --git a/tpl/includes.html b/tpl/includes.html index e0ad00d5..2b61f1e1 100644 --- a/tpl/includes.html +++ b/tpl/includes.html @@ -7,4 +7,3 @@ {if condition="is_file('inc/user.css')"}{/if} -{if="empty($GLOBALS['disablejquery'])"}{/if} diff --git a/tpl/linklist.html b/tpl/linklist.html index bce3fa9f..ddc38cb0 100644 --- a/tpl/linklist.html +++ b/tpl/linklist.html @@ -68,7 +68,6 @@ {include="page.footer"} {/if} - -{if="($GLOBALS['config']['OPEN_SHAARLI'] || isLoggedIn()) && empty($GLOBALS['disablejquery'])"} - -{/if} - -{if="empty($GLOBALS['disablejquery']) && isset($_GET['searchterm'])"} - - -{/if} \ No newline at end of file diff --git a/tpl/picwall.html b/tpl/picwall.html index 631e0866..b78e2609 100644 --- a/tpl/picwall.html +++ b/tpl/picwall.html @@ -2,7 +2,9 @@ {include="includes"} {if="empty($GLOBALS['disablejquery'])"} - + + + {/if} -- cgit v1.2.3