some updates to page loading performance and general performance.
added a ServiceWorker which caches stuff
This commit is contained in:
@@ -29,6 +29,7 @@ CACHE_DIR = os.path.join(PROJECT_ROOT, "cache")
|
||||
CDN_CACHE_DIR = os.path.join(CACHE_DIR, "cdn")
|
||||
|
||||
# CDN Resources to fetch and cache
|
||||
# If you modify the HTML Template to use any CDN include it here
|
||||
CDN_RESOURCES = {
|
||||
"/package/css/prism.min.css": "https://cdn.jsdelivr.net/npm/prismjs/themes/prism.min.css",
|
||||
"/package/js/prism.min.js": "https://cdn.jsdelivr.net/npm/prismjs/prism.min.js",
|
||||
|
||||
Reference in New Issue
Block a user