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:
10
index.php
10
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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user