From 2afe618414b8798a5af701a24607354a7fae1535 Mon Sep 17 00:00:00 2001 From: spaghetti Date: Tue, 27 Jun 2017 17:05:30 -0400 Subject: [PATCH] Merge some javascript - Removed unused JS functions - Inlined functions not often used - Minimized some overly verbose functions --- design/privateheader.php | 9 ++++----- design/publicheader.php | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/design/privateheader.php b/design/privateheader.php index 5d06917..d7eaaea 100755 --- a/design/privateheader.php +++ b/design/privateheader.php @@ -95,11 +95,10 @@ foreach ($ExtraCSS as $CSS) { get_value("script_stats_$Script")) === false || $ScriptStats['mtime'] != filemtime(SERVER_ROOT.STATIC_SERVER."functions/$Script.js")) { $ScriptStats['mtime'] = filemtime(SERVER_ROOT.STATIC_SERVER."functions/$Script.js"); $ScriptStats['hash'] = base64_encode(hash_file(INTEGRITY_ALGO, SERVER_ROOT.STATIC_SERVER."functions/$Script.js", true)); @@ -107,7 +106,7 @@ foreach ($Scripts as $Script) { G::$Cache->cache_value("script_stats_$Script", $ScriptStats); } ?> - + " /> get_value("script_stats_$Script")) === false || $ScriptStats['mtime'] != filemtime(SERVER_ROOT.STATIC_SERVER."functions/$Script.js")) { $ScriptStats['mtime'] = filemtime(SERVER_ROOT.STATIC_SERVER."functions/$Script.js");