summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-18 11:00:44 +0400
committerAndrew Dolgov <[email protected]>2013-03-18 11:00:44 +0400
commitc670a80ddd9b03bd4ea6d940a9ed682fd26248d7 (patch)
tree69b562eb609b4a7ef3ed95138c9f5b6d91896a52 /index.php
parent107997e6cb04f5daddb11e631b9866c385f2ca7d (diff)
cache minified js files
Diffstat (limited to 'index.php')
-rw-r--r--index.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/index.php b/index.php
index 49fcfdf98..68d6fc753 100644
--- a/index.php
+++ b/index.php
@@ -95,13 +95,9 @@
}
}
- foreach (array("tt-rss", "functions", "feedlist", "viewfeed", "FeedTree") as $js) {
- if (!isset($_GET['debug'])) {
- echo JShrink\Minifier::minify(file_get_contents("js/$js.js"));
- } else {
- echo file_get_contents("js/$js.js");
- }
- }
+ print get_minified_js(array("tt-rss",
+ "functions", "feedlist", "viewfeed", "FeedTree"));
+
?>
</script>