* Preload popular/commonly used scripts in background
()
| 81 | * Preload popular/commonly used scripts in background |
| 82 | */ |
| 83 | function preloadPopularScripts() { |
| 84 | const popular = [ |
| 85 | // "ggdrive_downloadPdf", |
| 86 | ]; |
| 87 | |
| 88 | setTimeout(() => { |
| 89 | popular.forEach((id) => { |
| 90 | loadFullScript(id).catch(() => { |
| 91 | // Silently fail - not critical |
| 92 | }); |
| 93 | }); |
| 94 | }, 100); |
| 95 | } |
| 96 | |
| 97 | async function lazyEnableSmoothScroll() { |
| 98 | const { enableSmoothScroll } = await import("../scripts/smoothScroll.js"); |
no test coverage detected