5.2
- page render caching - onDemand block caching - page html minify - better rate limiting - minor cobalt.js clean up - page render platform indication in settings popup all these changes are aimed to improve performance and responsiveness !! not final version of 5.2 !!
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
import changelogManager from "../changelog/changelogManager.js"
|
||||
|
||||
let cache = {}
|
||||
|
||||
export function changelogHistory() { // blockId 0
|
||||
if (cache['0']) return cache['0'];
|
||||
let history = changelogManager("history");
|
||||
let render = ``;
|
||||
|
||||
@@ -9,5 +12,6 @@ export function changelogHistory() { // blockId 0
|
||||
let separator = (i !== 0 && i !== historyLen) ? '<div class="separator"></div>' : ''
|
||||
render += `${separator}${history[i]["banner"] ? `<div class="changelog-banner"><img class="changelog-img" src="${history[i]["banner"]}" onerror="this.style.display='none'"></img></div>` : ''}<div id="popup-desc" class="changelog-subtitle">${history[i]["title"]}</div><div id="popup-desc" class="desc-padding">${history[i]["content"]}</div>`
|
||||
}
|
||||
cache['0'] = render;
|
||||
return render;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user