1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 17:35:56 +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

@@ -54,13 +54,8 @@
}
}
foreach (array("functions", "deprecated", "prefs") 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("functions", "deprecated", "prefs"));
?>
</script>