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:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user