MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / preloadPopularScripts

Function preloadPopularScripts

popup/index.js:83–95  ·  view source on GitHub ↗

* Preload popular/commonly used scripts in background

()

Source from the content-addressed store, hash-verified

81 * Preload popular/commonly used scripts in background
82 */
83function 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
97async function lazyEnableSmoothScroll() {
98 const { enableSmoothScroll } = await import("../scripts/smoothScroll.js");

Callers 1

index.jsFile · 0.85

Calls 1

loadFullScriptFunction · 0.85

Tested by

no test coverage detected