1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-17 03:39:15 +00:00

cache minified js files

This commit is contained in:
Andrew Dolgov
2013-03-18 11:00:44 +04:00
parent 107997e6cb
commit c670a80ddd
5 changed files with 37 additions and 14 deletions

View File

@@ -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>