Rich message rendering #24
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
// I hate this with passion
|
// I hate this with passion
|
||||||
async function lazyLoad(url) {
|
async function lazyLoad(url) {
|
||||||
const cache = window.lazy_load_cache || new Map()
|
const cache = window.lazyLoadCache || new Map()
|
||||||
|
window.lazyLoadCache = cache
|
||||||
if (cache.get(url)) return cache.get(url)
|
if (cache.get(url)) return cache.get(url)
|
||||||
|
|
||||||
const module = loadModuleWithoutCache(url)
|
const module = loadModuleWithoutCache(url)
|
||||||
|
|
Loading…
Reference in a new issue