Discuss Scratch
- BigNate469
-
Scratcher
1000+ posts
advanced hahas
Uhh..…stuupid nerds: avoid global namespace pollution!!!!i tried that - took 14s for all the scripts to load and ended up with 1400+ errors in the console lol
me:let packages = await fetch("https://javascript.dumorando.com/packages.json").then(data => data.json()) packages.map(pkg => { let newscript = document.createElement("script"); newscript.src = `https://javascript.dumorando.com/${pkg.replace("/", ".")}.js`; document.body.appendChild(newscript); });
That's a lot of errors.
- ajskateboarder
-
Scratcher
1000+ posts
advanced hahas
stuupid nerds: avoid global namespace pollution!!!!You sir are a genius
me:let packages = await fetch("https://javascript.dumorando.com/packages.json").then(data => data.json()) packages.map(pkg => { let newscript = document.createElement("script"); newscript.src = `https://javascript.dumorando.com/${pkg.replace("/", ".")}.js`; document.body.appendChild(newscript); });
- -gr
-
Scratcher
1000+ posts
advanced hahas
roses are red, violets are blue, unexpected ) found on line 22
- Mr_rudy
-
Scratcher
100+ posts
advanced hahas
roses are red, violets are blue, unexpected ) found on line 22that is actually really funny
- dynamicsofscratch
-
Scratcher
1000+ posts
advanced hahas
(#264)*advanced hahas*
roses are red, violets are blue, unexpected ) found on line 22




