mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-16 15:45:13 +00:00
13b9f6b07f
* Optimize images using Cloudflare Images * Try skipping middleware * Make it work with base path * Fetch image size * Use a target instead of the cf fetch options * Fix resizing * Start optimizing images * Preload images * Use it for page cover * Format and adapt cover * Fix image resizing serving jpeg * Lazy load dark mode images * Timeout at 2s * Fix iframe CSP * Implement logic to lazy load images that should be offscreen * Also lazy load cover images * Low priority in preloading * Fix csp
6 lines
134 B
TypeScript
6 lines
134 B
TypeScript
declare module 'memoizee/weak' {
|
|
declare function memoizee<F extends (...args: any[]) => any>(f: F): F;
|
|
|
|
export = memoizee;
|
|
}
|